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
Syntax
'Declaration
Public Function Contains ( _
fieldId As Guid _
) As Boolean
'Usage
Dim instance As SPFieldCollection
Dim fieldId As Guid
Dim returnValue As Boolean
returnValue = instance.Contains(fieldId)
public bool Contains(
Guid fieldId
)
Parameters
fieldId
Type: System.GuidA System.Guid object that specifies the field ID.
Return Value
Type: System.Boolean
true if the collection contains the field; otherwise, false.