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)

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.Guid

    A System.Guid object that specifies the field ID.

Return value

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

See also

Reference

SPFieldCollection class

SPFieldCollection members

Microsoft.SharePoint namespace