Udostępnij przez


BrokerPriority.ContractName Property

Gets or sets the contract name specified for the BrokerPriority object.

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

Syntax

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

/** @property */
public void set_ContractName (String value)
public function get ContractName () : String

public function set ContractName (value : String)

Property Value

A String value that specifies the name of a Service Broker contract to be used as a criterion for determining if the conversation priority applies to a conversation.

Remarks

If ANY is specified for the contract name, the conversation priority can be applied to any conversation, regardless of which contract it uses. If the name of a contract is specified, the conversation priority can be applied only to conversations where the BEGIN DIALOG statement that started the conversation specified ON CONTRACT ContractName. ContractName must specify a contract in the current database.

The ContractName 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.