MessageQueue::ClearConnectionCache Method ()

 

Clears the connection cache.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public:
static void 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

The following code example calls ClearConnectionCache.

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

.NET Framework
Available since 1.1
Return to top
Show: