GetByInternalNameOrTitle method

FieldCollection.GetByInternalNameOrTitle method

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

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

public Field GetByInternalNameOrTitle(
	string 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.


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.

© 2015 Microsoft