FieldCollection.GetById method

Returns the field object specified by the GUID.

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


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

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


  • 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.


Exception Condition

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

See also


FieldCollection class

FieldCollection members

Microsoft.SharePoint.Client namespace