Share via


FieldCollection.GetById method

Returns the field object specified by the GUID.

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

Syntax

'Declaration
Public Function GetById ( _
    id As Guid _
) As Field
'Usage
Dim instance As FieldCollection
Dim id As Guid
Dim returnValue As Field

returnValue = instance.GetById(id)
public Field GetById(
    Guid id
)

Parameters

  • id
    Type: System.Guid

    An Identifier of the Field object that represents the field.

Return value

Type: Microsoft.SharePoint.Client.Field
Returns Field object specified by the GUID.

Exceptions

Exception Condition
[System.ArgumentException]

The field with the specified GUID does not exist in the collection at the given scope. Error code: -2147024809.

See also

Reference

FieldCollection class

FieldCollection members

Microsoft.SharePoint.Client namespace