다음을 통해 공유


ValidationXmlSchemaCollection 속성

Gets or sets the XML schema collection used for validation.

이 API는 CLS 규격이 아닙니다. CLS 규격 대체 항목은 입니다.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Broker
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<SfcReferenceAttribute(GetType(XmlSchemaCollection), "Server[@Name = '{0}']/Database[@Name = '{1}']/XmlSchemaCollection[@Name='{2}' and @Schema='{3}']",  _
    )> _
<CLSCompliantAttribute(False)> _
Public Property ValidationXmlSchemaCollection As String
    Get
    Set
‘사용 방법
Dim instance As MessageType
Dim value As String

value = instance.ValidationXmlSchemaCollection

instance.ValidationXmlSchemaCollection = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
[SfcReferenceAttribute(typeof(XmlSchemaCollection), "Server[@Name = '{0}']/Database[@Name = '{1}']/XmlSchemaCollection[@Name='{2}' and @Schema='{3}']", 
    )]
[CLSCompliantAttribute(false)]
public string ValidationXmlSchemaCollection { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
[SfcReferenceAttribute(typeof(XmlSchemaCollection), L"Server[@Name = '{0}']/Database[@Name = '{1}']/XmlSchemaCollection[@Name='{2}' and @Schema='{3}']", 
    )]
[CLSCompliantAttribute(false)]
public:
property String^ ValidationXmlSchemaCollection {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
[<SfcReferenceAttribute(typeof(XmlSchemaCollection), "Server[@Name = '{0}']/Database[@Name = '{1}']/XmlSchemaCollection[@Name='{2}' and @Schema='{3}']", 
    )>]
[<CLSCompliantAttribute(false)>]
member ValidationXmlSchemaCollection : string with get, set
function get ValidationXmlSchemaCollection () : String
function set ValidationXmlSchemaCollection (value : String)

속성 값

유형: System. . :: . .String
A String value that specifies the name of the XML schema collection used for validation of the message body.

주의

This property sets the name of a XmlSchemaCollection object that is used to validate the contents of the referenced message type.

The MessageTypeValidation property must be set to XmlSchemaCollection before the ValidationXmlSchemaCollection property can be set.