Propriedade do RDL DataType.XmlDocumentConstraint

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

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

Sintaxe

'Declaração
Public Property XmlDocumentConstraint As XmlDocumentConstraint 
    Get 
    Set
'Uso
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)

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Smo.XmlDocumentConstraint
Default -Uses server default settingContent - Text is an XML fragmentDocument - Text is a well formed XML instance

Comentários

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

Consulte também

Referência

DataType Classe

Namespace Microsoft.SqlServer.Management.Smo