Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the schema definition for additional properties that are associated with the view.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableConstraintAttribute(FixedId := "SPViewViewData", Type := ClientCallableConstraintType.Custom, _
Value := "It MUST be null or be an XML fragment that conforms to the following XML schema where FieldRefDefinitionViewData is defined in [MS-WSSCAML]: <xs:sequence><xs:element name="FieldRef" type="FieldRefDefinitionViewData" minOccurs="3" maxOccurs="5" /></xs:sequence>")> _
<ClientCallableAttribute> _
Public Property ViewData As String
Get
Set
'Usage
Dim instance As SPView
Dim value As String
value = instance.ViewData
instance.ViewData = value
[ClientCallableConstraintAttribute(FixedId = "SPViewViewData", Type = ClientCallableConstraintType.Custom,
Value = "It MUST be null or be an XML fragment that conforms to the following XML schema where FieldRefDefinitionViewData is defined in [MS-WSSCAML]: <xs:sequence><xs:element name="FieldRef" type="FieldRefDefinitionViewData" minOccurs="3" maxOccurs="5" /></xs:sequence>")]
[ClientCallableAttribute]
public string ViewData { get; set; }
Property Value
Type: System.String
A Collaborative Application Markup Language (CAML) string that contains the definition for additional properties associated with the view, such as follows:
<FieldRef Name="Title" Type="CalendarMonthTitle" />
<FieldRef Name="Title" Type="CalendarWeekTitle" />
<FieldRef Name="Location" Type="CalendarWeekLocation" />
<FieldRef Name="Title" Type="CalendarDayTitle" />
<FieldRef Name="Location" Type="CalendarDayLocation" />
Remarks
This property corresponds to the ViewData element.