Condividi tramite


View.ViewData Property

Gets or sets a value that specifies the view data for the list view.

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 Property ViewData As String
    Get
    Set
'Usage
Dim instance As View
Dim value As String

value = instance.ViewData

instance.ViewData = value
[RemoteAttribute]
public string ViewData { get; set; }

Property Value

Type: System.String
Returns a String instance representing the view data for the list view.

Remarks

It must be a null reference (Nothing in Visual Basic) or an XML fragment that conforms to the following XML schema:<xs:sequence><xs:element name=”FieldRef” type=”FieldRefDefinitionViewData” minOccurs=”3” maxOccurs=”5”/></xs:sequence>where FieldRefDefinitionViewData.

Schema

<xs:complexType name="ListMetaDataDefault">
    <xs:sequence>
      <xs:element name="Forms" type="ListFormSet" />
    </xs:sequence>
</xs:complexType>

See Also

Reference

View Class

View Members

Microsoft.SharePoint.Client Namespace