共用方式為


Field.SchemaXml Property

Gets or sets a value that specifies the XML schema that defines the field.

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 SchemaXml As String
    Get
    Set
'Usage
Dim instance As Field
Dim value As String

value = instance.SchemaXml

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

Property Value

Type: System.String
Returns a String instance representing the XML schema that defines the field.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

The server does not allow properties of the field to be changed. Error code: -2146232832.

[System.NotSupportedException]

Value is changed to a non-a null reference (Nothing in Visual Basic) or non-empty value, and the list is an external list. Error code: -1.

Remarks

It must be a null reference (Nothing in Visual Basic), empty, or an XML fragment that conforms to the FieldDefinition type. A field definition describes the structure and format of a field that is used within a list or content type.

See Also

Reference

Field Class

Field Members

Microsoft.SharePoint.Client Namespace