共用方式為


SPFieldCollection.SchemaXml Property

Gets the schema that defines 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.NotEmpty)> _
<ClientCallableConstraintAttribute(FixedId := "validstr", Type := ClientCallableConstraintType.Custom,  _
    Value := "It MUST be an XML document that conforms to the FieldDefinitions type as defined in [MS-WSSCAML] document")> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
Public ReadOnly Property SchemaXml As String
    Get
'Usage
Dim instance As SPFieldCollection
Dim value As String

value = instance.SchemaXml
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotEmpty)]
[ClientCallableConstraintAttribute(FixedId = "validstr", Type = ClientCallableConstraintType.Custom, Value = "It MUST be an XML document that conforms to the FieldDefinitions type as defined in [MS-WSSCAML] document")]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public string SchemaXml { get; }

Property Value

Type: System.String
A Collaborative Application Markup Language (CAML) string that contains the schema.

See Also

Reference

SPFieldCollection Class

SPFieldCollection Members

Microsoft.SharePoint Namespace