共用方式為


SPField.SchemaXml property

取得或設定會定義欄位的結構描述。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property SchemaXml As String
    Get
    Set
'用途
Dim instance As SPField
Dim value As String

value = instance.SchemaXml

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

Property value

Type: System.String
共同作業應用程式標記語言 (CAML)字串包含結構描述。

備註

若要修改欄位使用SchemaXml屬性時沒有呼叫Update方法。

若要設定的唯讀屬性,例如InternalName,使用此屬性會產生例外狀況。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace