Partilhar via


SPTimeZoneCollection.Item Property

Gets the time zone object at the specified index in the collection. In Microsoft Visual C#, this property is the indexer for the SPTimeZoneCollection class.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property Item ( _
    index As Integer _
) As SPTimeZone
    Get
'Usage
Dim instance As SPTimeZoneCollection
Dim index As Integer
Dim value As SPTimeZone

value = instance.Item(index)
public SPTimeZone this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index.

Property Value

Type: Microsoft.SharePoint.SPTimeZone
A Microsoft.SharePoint.SPTimeZone object that represents the time zone.

See Also

Reference

SPTimeZoneCollection Class

SPTimeZoneCollection Members

Microsoft.SharePoint Namespace