语言

MessageQueue.ClearConnectionCache 方法

定义

清除连接缓存。

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

示例

下面的代码示例调用 ClearConnectionCache。

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

注解

调用 ClearConnectionCache时,将删除缓存中存储的格式名称,并关闭缓存中打开并存储的句柄。

下表显示了此方法在各种工作组模式下是否可用。

工作组模式 可用的
本地计算机 是
本地计算机和直接格式名称 是
远程计算机 是
远程计算机和直接格式名称 是

适用于