MessageType.ValidationXmlSchemaCollection プロパティ

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

この API は、CLS に準拠していません。 CLS に準拠する代替が必要な場合は、 を使用してください。

名前空間:  Microsoft.SqlServer.Management.Smo.Broker
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

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

value = instance.ValidationXmlSchemaCollection

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

プロパティ値

型: System.String
メッセージ本文の検証で使用される XML スキーマ コレクションの名前を示す String 値です。

説明

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

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

使用例

Readme_ServiceBrokerConfiguration

関連項目

参照

MessageType クラス

Microsoft.SqlServer.Management.Smo.Broker 名前空間

その他の技術情報

開発 (Service Broker)

Service Broker の管理

概要 (Service Broker)

CREATE MESSAGE TYPE (Transact-SQL)