次の方法で共有


ValidationXmlSchemaCollection プロパティ

検証で使用される XML スキーマ コレクションを取得します。値の設定も可能です。

この 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
メッセージ本文の検証で使用される XML スキーマ コレクションの名前を示す String 値です。

説明

このプロパティで、参照されるメッセージ型の内容の検証に使用する XmlSchemaCollection オブジェクトの名前を設定します。

ValidationXmlSchemaCollection プロパティの設定前に、MessageTypeValidation プロパティを XmlSchemaCollection に設定する必要があります。