ViewFieldCollection.Remove Method
Removes the field with the specified field internal name from the collection.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Sub Remove ( _
strField As String _
)
'Usage
Dim instance As ViewFieldCollection
Dim strField As String
instance.Remove(strField)
[RemoteAttribute]
public void Remove(
string strField
)
Parameters
strField
Type: System.StringSpecifies the field internal name.
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | Field does not exist in the collection. Error code: -2146232832. |
Remarks
It must not be null.