Share via


SPViewFieldCollection.Exists Method

Returns a Boolean value that indicates whether the specified view field exists.

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

Syntax

'Declaration
Public Function Exists ( _
    Name As String _
) As Boolean
'Usage
Dim instance As SPViewFieldCollection
Dim Name As String
Dim returnValue As Boolean

returnValue = instance.Exists(Name)
public bool Exists(
    string Name
)

Parameters

  • Name
    Type: System.String

    A string that contains the name of the field.

Return Value

Type: System.Boolean
true if the view field specified by the given name exists; otherwise, false.

See Also

Reference

SPViewFieldCollection Class

SPViewFieldCollection Members

Microsoft.SharePoint Namespace