Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the identifier (ID) of the field at the specified index in the SPFieldIndex.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.Int32A 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. |