FieldCollection.GetByInternalNameOrTitle method

Returns the first field object with the specified internal name or title from the collection.

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


Public Function GetByInternalNameOrTitle ( _
    strName As String _
) As Field
Dim instance As FieldCollection
Dim strName As String
Dim returnValue As Field

returnValue = instance.GetByInternalNameOrTitle(strName)
public Field GetByInternalNameOrTitle(
    string strName


  • strName
    Type: System.String

    A string that specifies the internal name or title of the field.

Return value

Type: Microsoft.SharePoint.Client.Field
A Field object that represents the field.
It must not be a null reference (Nothing in Visual Basic). It must not be empty.


Exception Condition

There is a COM exception that is not a throttle failure or a join throttle failure. Error code: -1.


There is a throttle failure. Error code: -2147024860.

There is a join throttle failure. Error code: -2147024749.


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


The current user has insufficient permissions. Error code: - 2147024891.


The GetByInternalNameOrTitle method searches first for an internal name, and then by title if an internal name is not found.

See also


FieldCollection class

FieldCollection members

Microsoft.SharePoint.Client namespace