Export (0) Print
Expand All

SPFieldCollection.ContainsField Method

Returns a Boolean value that indicates whether the collection contains the specified field.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public bool ContainsField(
	string fieldName
)

Parameters

fieldName
Type: System.String

A string that contains either the display name or the internal name of the field.

Return Value

Type: System.Boolean
true if the collection contains the field; otherwise, false.
Show:
© 2014 Microsoft