Export (0) Print
Expand All

DataType.XmlDocumentConstraint Property

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public XmlDocumentConstraint XmlDocumentConstraint { get; set; }

Property Value

Type: Microsoft.SqlServer.Management.Smo.XmlDocumentConstraint
Default -Uses server default settingContent - Text is an XML fragmentDocument - 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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft