MessagePropertyFilter.DefaultLabelSize プロパティ

定義

ラベル バッファーの既定サイズ (バイト数) を取得または設定します。

public:
 property int DefaultLabelSize { int get(); void set(int value); };
[System.Messaging.MessagingDescription("MsgDefaultLabelSize")]
public int DefaultLabelSize { get; set; }
[<System.Messaging.MessagingDescription("MsgDefaultLabelSize")>]
member this.DefaultLabelSize : int with get, set
Public Property DefaultLabelSize As Integer

プロパティ値

メッセージの受信時に作成されるラベル バッファーの既定サイズ。 既定値は 255 バイトです。

属性

例外

代入値が負の値です。

次のコード例では、 プロパティの使用方法を DefaultLabelSize 示します。

// Set the filter's DefaultLabelSize 
// property to 1024 bytes.
queue->MessageReadPropertyFilter->
    DefaultLabelSize = 1024;

// Display the new value of the filter's 
// DefaultLabelSize property.
Console::WriteLine(
    "MessageReadPropertyFilter.DefaultLabelSize: {0}", 
    queue->MessageReadPropertyFilter->DefaultLabelSize);
// Set the filter's DefaultLabelSize property to 1024 bytes.
queue.MessageReadPropertyFilter.DefaultLabelSize = 1024;

// Display the new value of the filter's DefaultLabelSize property.
Console.WriteLine("MessageReadPropertyFilter.DefaultLabelSize: {0}",
    queue.MessageReadPropertyFilter.DefaultLabelSize.ToString());

注釈

既定のラベル サイズは、メッセージのラベルに割り当てるバイト数を指定します。 クラスの Message プロパティはLabel、メッセージのラベルを指定します。

適用対象

こちらもご覧ください