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 the schema that specifies the view fields in the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableConstraintAttribute(FixedId := "validCAMLString", Type := ClientCallableConstraintType.Custom, _
Value := "It MUST conform to ViewFields as defined in [MS-WSSCAML].")> _
Public ReadOnly Property SchemaXml As String
Get
'Usage
Dim instance As SPViewFieldCollection
Dim value As String
value = instance.SchemaXml
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableConstraintAttribute(FixedId = "validCAMLString", Type = ClientCallableConstraintType.Custom,
Value = "It MUST conform to ViewFields as defined in [MS-WSSCAML].")]
public string SchemaXml { get; }
Property Value
Type: System.String
A Collaborative Application Markup Language (CAML) string that contains the schema.
Remarks
The SchemaXml property returns a string like the following.
<FieldRef Name="LinkTitleNoMenu" Explicit="TRUE" />
<FieldRef Name="Body" Explicit="TRUE" />
<FieldRef Name="Author" Explicit="TRUE" />
<FieldRef Name="Modified" Explicit="TRUE" />
<FieldRef Name="Attachments" Explicit="TRUE" />