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

Dim value As Boolean value = MessageQueue.EnableConnectionCache MessageQueue.EnableConnectionCache = value
/** @property */ public static boolean get_EnableConnectionCache () /** @property */ public static void set_EnableConnectionCache (boolean value)
public static function get EnableConnectionCache () : boolean public static function set EnableConnectionCache (value : boolean)
接続キャッシュを作成し、使用する場合は true。それ以外の場合は false。

接続キャッシュは、キューへの読み取りハンドルまたは書き込みハンドルを含む構造体への参照のリストです。EnableConnectionCache が true の場合、Send(Object)、Peek、または Receive を呼び出すたびに、MessageQueue は新しいハンドルを開かずに、キャッシュからハンドルを借用します。これによってパフォーマンスが向上します。また、接続キャッシュを使用すると、MessageQueue がネットワーク トポロジの変更から遮断されます。
接続キャッシュが飽和状態のときにキューへの新しい接続を作成すると、MessageQueue は最後にアクセスされてから最も長い時間が経過している構造体を新しい接続で上書きします。作業をしているキューの書式名が変更されて、前回の読み取りハンドルと書き込みハンドルが無効になった場合などは、ClearConnectionCache を呼び出すことによってキャッシュ全体を消去できます。
このプロパティが各種のワークグループ モードで使用できるかどうかを次の表に示します。

メッセージ キューの EnableConnectionCache プロパティに対し、値の取得と設定を行うコード例を次に示します。
// Set the MessageQueue.EnableConnectionCache property value. MessageQueue.EnableConnectionCache = false; // Display the new value of the MessageQueue.EnableConnectionCache // property. Console.WriteLine("MessageQueue.EnableConnectionCache: {0}", MessageQueue.EnableConnectionCache);
// Set the MessageQueue.EnableConnectionCache property value. MessageQueue.set_EnableConnectionCache(false); // Display the new value of the MessageQueue.EnableConnectionCache // property. Console.WriteLine("MessageQueue.EnableConnectionCache: {0}", System.Convert.ToString(MessageQueue.get_EnableConnectionCache()));


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からMessageQueue.EnableConnectionCache プロパティを検索する場合は、下記のリンクをクリックしてください。

- MessageQueue.EnableConnectionCache プロパティのページへのリンク