SPFieldCollection.GetFieldByInternalName method

Returns the field with the specified internal name from the collection.

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

'Declaration
Public Function GetFieldByInternalName ( _
	strName As String _
) As SPField
'Usage
Dim instance As SPFieldCollection
Dim strName As String
Dim returnValue As SPField

returnValue = instance.GetFieldByInternalName(strName)

Parameters

strName
Type: System.String

A string that specifies the internal name of the field.

Return value

Type: Microsoft.SharePoint.SPField
An SPField object that represents the field.

ExceptionCondition
ArgumentException

No field with that name exists in the collection.

Show: