Udostępnij przez


BrokerPriority.LocalServiceName Property

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

Namespace: Microsoft.SqlServer.Management.Smo.Broker
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
<SfcPropertyAttribute> _
Public Property LocalServiceName As String
[SfcPropertyAttribute] 
public string LocalServiceName { get; set; }
[SfcPropertyAttribute] 
public:
property String^ LocalServiceName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_LocalServiceName ()

/** @property */
public void set_LocalServiceName (String value)
public function get LocalServiceName () : String

public function set LocalServiceName (value : String)

Property Value

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.

Remarks

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.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.