Condividi tramite


ViewFieldCollection.Remove method

Removes the field with the specified field internal name from the collection.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Sub Remove ( _
    strField As String _
)
'Usage
Dim instance As ViewFieldCollection
Dim strField As String

instance.Remove(strField)
public void Remove(
    string strField
)

Parameters

  • strField
    Type: System.String

    Specifies 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 a null reference (Nothing in Visual Basic).

See also

Reference

ViewFieldCollection class

ViewFieldCollection members

Microsoft.SharePoint.Client namespace