BrokerService.QueueName 属性

Gets or sets the queue that the service uses to hold messages.

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Management.Smo.Broker
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(ServiceQueue), "Server[@Name = '{0}']/Database[@Name = '{1}']/ServiceBroker/ServiceQueue[@Name='{2}' and @Schema='{3}']",  _
    )> _
Public Property QueueName As String 
    Get 
    Set
用法
Dim instance As BrokerService 
Dim value As String 

value = instance.QueueName

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

属性值

类型:System.String
A String value that specifies the name of the queue that the service uses to hold messages.

示例

Readme_ServiceBrokerConfiguration

请参阅

参考

BrokerService 类

Microsoft.SqlServer.Management.Smo.Broker 命名空间

其他资源

开发 (Service Broker)

管理 Service Broker

概述 (Service Broker)