SPFieldCollection.Item property (Guid)

Gets the field with the specified identifier (ID) from the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    id As Guid _
) As SPField
    Get
'Usage
Dim instance As SPFieldCollection
Dim id As Guid
Dim value As SPField

value = instance(id)
public SPField this[
    Guid id
] { get; }

Parameters

  • id
    Type: System.Guid

    A System.Guid object that specifies the field ID.

Property value

Type: Microsoft.SharePoint.SPField
An SPField object that represents the field.

See also

Reference

SPFieldCollection class

SPFieldCollection members

Item overload

Microsoft.SharePoint namespace