ClearConnectionCache Method

MessageQueue.ClearConnectionCache Method

Clears the connection cache.

[Visual Basic]
Public Shared Sub ClearConnectionCache()
public static void ClearConnectionCache();
public: static void ClearConnectionCache();
public static function 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 + direct format name Yes
Remote computer Yes
Remote computer + direct format name Yes


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace

© 2016 Microsoft