SPFieldCollection.GetField method
SharePoint 2013
Returns the field with the specified internal, display, or static name from the collection.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableMethodAttribute(Name = "GetByInternalNameOrTitle", CacheReturnValue = true, OperationType = OperationType.Read)] public SPField GetField( string strName )
Parameters
- strName
- Type: System.String
A string that specifies either the internal, display, or static name of the field.
| Exception | Condition |
|---|---|
| ArgumentException | The field is not found. |