ViewFieldCollection.Add Method
Adds the field with the specified field internal name or display name to 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 Add ( _
strField As String _
)
'Usage
Dim instance As ViewFieldCollection
Dim strField As String
instance.Add(strField)
[RemoteAttribute]
public void Add(
string strField
)
Parameters
strField
Type: System.StringSpecifies the field internal name or the display name
Exceptions
Exception | Condition |
---|---|
[System.ArgumentException] | Field does not exist in the list. Error code: -2147024809 |
Remarks
It must not be a null reference (Nothing in Visual Basic).