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)> _
<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
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.
範例
Readme_ServiceBrokerConfiguration
請參閱
參考
Microsoft.SqlServer.Management.Smo.Broker 命名空間