次の方法で共有


BrokerPriority.PriorityLevel プロパティ

BrokerPriority オブジェクトに関連付けられた優先度レベルを取得します。値の設定も可能です。

名前空間:  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
メッセージ交換の優先度で指定されているコントラクトとサービスを使用する、すべてのメッセージ交換のエンドポイントに割り当てられる優先度レベルを指定する Byte 値です。

説明

PriorityLevel は 1 (最も低い優先度) から 10 (最も高い優先度) までの整数になります。 既定値は 5 です。

使用例

CREATE BROKER PRIORITY (Transact-SQL)

関連項目

参照

BrokerPriority クラス

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

その他の技術情報

メッセージ交換の優先度

メッセージ交換の優先度の管理

メッセージ交換の優先度のトラブルシューティング

開発 (Service Broker)

概要 (Service Broker)

CREATE BROKER PRIORITY (Transact-SQL)