XmlDocumentConstraint 属性

Gets or sets a value that indicates how an XML document is formatted.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Property XmlDocumentConstraint As XmlDocumentConstraint
    Get
    Set
用法
Dim instance As DataType
Dim value As XmlDocumentConstraint

value = instance.XmlDocumentConstraint

instance.XmlDocumentConstraint = value
public XmlDocumentConstraint XmlDocumentConstraint { get; set; }
public:
property XmlDocumentConstraint XmlDocumentConstraint {
    XmlDocumentConstraint get ();
    void set (XmlDocumentConstraint value);
}
member XmlDocumentConstraint : XmlDocumentConstraint with get, set
function get XmlDocumentConstraint () : XmlDocumentConstraint
function set XmlDocumentConstraint (value : XmlDocumentConstraint)

属性值

类型:Microsoft.SqlServer.Management.Smo. . :: . .XmlDocumentConstraint
Default -Uses server default setting
Content - Text is an XML fragment
Document - Text is a well formed XML instance

注释

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.Xml, "Test XML Schema")
dt.XmlDocumentConstraint = XmlDocumentConstraint.Content

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Xml, "Test XML Schema")
$dt.XmlDocumentConstraint = [Microsoft.SqlServer.Management.Smo.XmlDocumentConstraint]::Content