MessagePropertyFilter.DefaultLabelSize プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ラベル バッファーの既定サイズ (バイト数) を取得または設定します。
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、メッセージのラベルを指定します。
適用対象
こちらもご覧ください
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET