SPFieldCollection.Contains Method

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

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

public bool Contains(
	Guid fieldId


Type: System.Guid

A System.Guid object that specifies the field ID.

Return Value

Type: System.Boolean
true if the collection contains the field; otherwise, false.