Share via


SPFieldIndex.GetField method

Retrieves the identifier (ID) of the field at the specified index in the SPFieldIndex.

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

Syntax

'Declaration
Public Function GetField ( _
    index As Integer _
) As Guid
'Usage
Dim instance As SPFieldIndex
Dim index As Integer
Dim returnValue As Guid

returnValue = instance.GetField(index)
public Guid GetField(
    int index
)

Parameters

  • index
    Type: System.Int32

    A zero-based index value that identifies the position of the field to be located.

Return value

Type: System.Guid
The ID of the field.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is negative or greater than the number of fields.

See also

Reference

SPFieldIndex class

SPFieldIndex members

Microsoft.SharePoint namespace