다음을 통해 공유


BrokerPriority.LocalServiceName 속성

Gets or sets the local service name associated with the BrokerPriority object.

이 API는 CLS 규격이 아닙니다. 

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

구문

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

value = instance.LocalServiceName

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

속성 값

유형: System.String
A String value that specifies the name of a Service Broker service to be used as a criterion for determining if the conversation priority applies to a conversation.

주의

If ANY is specified for the local service name, the conversation priority can be applied to any conversation, regardless of which local service it uses. If the name of a service is specified, the conversation priority can be applied only to conversations where either:

  • The initiator conversation endpoint uses an initiator service name that matches LocalServiceName.

  • The target conversation endpoint uses a target service name that matches LocalServiceName.

LocalServiceName must specify a service in the current database. The LocalServiceName default is ANY.

CREATE BROKER PRIORITY(Transact-SQL)

참고 항목

참조

BrokerPriority 클래스

Microsoft.SqlServer.Management.Smo.Broker 네임스페이스

관련 자료

대화 우선 순위

대화 우선 순위 관리

대화 우선 순위 문제 해결

개발(Service Broker)

개요(Service Broker)

CREATE BROKER PRIORITY(Transact-SQL)