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)
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.StringA 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.