MessageQueue.ClearConnectionCache 方法

定義

清除連接快取。Clears the connection cache.

public:
 static void ClearConnectionCache();
public static void ClearConnectionCache ();
static member ClearConnectionCache : unit -> unit
Public Shared Sub ClearConnectionCache ()

範例

下列程式碼範例呼叫 ClearConnectionCacheThe following code example calls ClearConnectionCache.

// Call the MessageQueue.ClearConnectionCache method.
MessageQueue.ClearConnectionCache();

備註

當您呼叫時 ClearConnectionCache ,會移除儲存在快取中的格式名稱,並且會關閉已開啟並儲存在快取中的控制碼。When you call ClearConnectionCache, the format names stored in the cache are removed and handles opened and stored in the cache are closed.

下表顯示此方法是否適用于各種工作組模式。The following table shows whether this method is available in various Workgroup modes.

工作組模式Workgroup mode 可用Available
本機電腦Local computer Yes
本機電腦和直接格式名稱Local computer and direct format name Yes
遠端電腦Remote computer Yes
遠端電腦和直接格式名稱Remote computer and direct format name Yes

適用於