Share via


FieldCollection.GetByTitle method

Returns the first field object in the collection based on the title of the specified field.

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

Syntax

'Declaration
Public Function GetByTitle ( _
    title As String _
) As Field
'Usage
Dim instance As FieldCollection
Dim title As String
Dim returnValue As Field

returnValue = instance.GetByTitle(title)
public Field GetByTitle(
    string title
)

Parameters

  • title
    Type: System.String

    A title of the Field object that represents the field.

    It must not be a null reference (Nothing in Visual Basic). It must not be empty.

Return value

Type: Microsoft.SharePoint.Client.Field
Returns a Field instance representing the first field object in the collection based on the title of the specified field.

Exceptions

Exception Condition
[System.ArgumentException]

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

See also

Reference

FieldCollection class

FieldCollection members

Microsoft.SharePoint.Client namespace