Share via


SPFieldCollection.ContainsFieldWithStaticName Method

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

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

Syntax

'Declaration
Public Function ContainsFieldWithStaticName ( _
    staticName As String _
) As Boolean
'Usage
Dim instance As SPFieldCollection
Dim staticName As String
Dim returnValue As Boolean

returnValue = instance.ContainsFieldWithStaticName(staticName)
public bool ContainsFieldWithStaticName(
    string staticName
)

Parameters

  • staticName
    Type: System.String

    A string containing the static name.

Return Value

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

See Also

Reference

SPFieldCollection Class

SPFieldCollection Members

Microsoft.SharePoint Namespace