Compartir a través de


LocalServiceName Propiedad

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

Esta API no es compatible con CLS. 

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Broker
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcReferenceAttribute(GetType(BrokerService), "Server[@Name = '{0}']/Database[@Name = '{1}']/ServiceBroker/BrokerService[@Name='{2}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<CLSCompliantAttribute(False)> _
Public Property LocalServiceName As String
    Get
    Set
'Uso
Dim instance As BrokerPriority
Dim value As String

value = instance.LocalServiceName

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

Valor de la propiedad

Tipo: 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.

Comentarios

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.