MessagePropertyFilter.DefaultBodySize プロパティ
アセンブリ: System.Messaging (system.messaging.dll 内)

Dim instance As MessagePropertyFilter Dim value As Integer value = instance.DefaultBodySize instance.DefaultBodySize = value
/** @property */ public int get_DefaultBodySize () /** @property */ public void set_DefaultBodySize (int value)
メッセージの受信時に作成される本文バッファの既定サイズ。既定値は 1024 バイトです。


既定の本文バッファのサイズによって、メッセージの本文の内容に割り当てるバイト数が決まります。Message クラスの Body プロパティは、メッセージのシリアル化された内容を表します。本文には、最大 4 MB のデータを格納できます。本文のサイズを制限することで、パフォーマンスを向上させることができます。

DefaultBodySize プロパティの使用方法を示すコード例を次に示します。
// Set the filter's DefaultBodySize property to 2048 bytes. queue.MessageReadPropertyFilter.DefaultBodySize = 2048; // Display the new value of the filter's DefaultBodySize property. Console.WriteLine("MessageReadPropertyFilter.DefaultBodySize: {0}", queue.MessageReadPropertyFilter.DefaultBodySize.ToString());
// Set the filter's DefaultBodySize // property to 2048 bytes. queue->MessageReadPropertyFilter-> DefaultBodySize = 2048; // Display the new value of the filter's // DefaultBodySize property. Console::WriteLine( "MessageReadPropertyFilter.DefaultBodySize: {0}", queue->MessageReadPropertyFilter->DefaultBodySize);
// Set the filter's DefaultBodySize property to 2048 bytes. queue.get_MessageReadPropertyFilter().set_DefaultBodySize(2048); // Display the new value of the filter's DefaultBodySize property. Console.WriteLine("MessageReadPropertyFilter.DefaultBodySize: {0}", System.Convert.ToString(queue.get_MessageReadPropertyFilter(). get_DefaultBodySize()));


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


MessagePropertyFilter クラス
MessagePropertyFilter メンバ
System.Messaging 名前空間
Message クラス
MessagePropertyFilter.Body プロパティ
MessageQueue
Weblioに収録されているすべての辞書からMessagePropertyFilter.DefaultBodySize プロパティを検索する場合は、下記のリンクをクリックしてください。

- MessagePropertyFilter.DefaultBodySize プロパティのページへのリンク