共用方式為


BrokerPriority.PriorityLevel 屬性

Gets or sets the priority level associated with the BrokerPriority object.

命名空間:  Microsoft.SqlServer.Management.Smo.Broker
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property PriorityLevel As Byte 
    Get 
    Set
'用途
Dim instance As BrokerPriority 
Dim value As Byte 

value = instance.PriorityLevel

instance.PriorityLevel = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public byte PriorityLevel { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property unsigned char PriorityLevel {
    unsigned char get ();
    void set (unsigned char value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PriorityLevel : byte with get, set
function get PriorityLevel () : byte 
function set PriorityLevel (value : byte)

屬性值

型別:System.Byte
A Byte value that specifies the priority level to be assigned to any conversation endpoint that uses the contract and services specified in the conversation priority.

備註

PriorityLevel must be an integer from 1 (lowest priority) to 10 (highest priority). The default is 5.

範例

CREATE BROKER PRIORITY (Transact-SQL)

請參閱

參考

BrokerPriority 類別

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

其他資源

交談優先權

管理交談優先權

疑難排解交談優先權

開發 (Service Broker)

概觀 (Service Broker)

CREATE BROKER PRIORITY (Transact-SQL)