ViewFieldCollection.MoveFieldTo Method

Moves the field with the specified field internal name to the specified position in 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)


<RemoteAttribute> _
Public Sub MoveFieldTo ( _
    field As String, _
    index As Integer _
Dim instance As ViewFieldCollection
Dim field As String
Dim index As Integer

instance.MoveFieldTo(field, index)
public void MoveFieldTo(
    string field,
    int index


  • index
    Type: System.Int32

    Specifies the position for the field. The first position is 0


Exception Condition

Field does not exist in the collection. Error code: -2146232832


It must not be a null reference (Nothing in Visual Basic). Its value must be equal to or greater than 0.

See Also


ViewFieldCollection Class

ViewFieldCollection Members

Microsoft.SharePoint.Client Namespace