다음을 통해 공유


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