다음을 통해 공유


FieldCollection.GetById Method

Returns the field object specified by the GUID.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
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