System.Messaging Reference (Document! X Sample)



System.Messaging Namespace > MessageQueue Class : EnableConnectionCache Property
EnableConnectionCache Property
Gets or sets a value that indicates whether a cache of connections will be maintained by the application.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
Public Shared Property EnableConnectionCache As Boolean
'Usage
 
Dim value As Boolean
 
MessageQueue.EnableConnectionCache = value
 
value = MessageQueue.EnableConnectionCache
[Browsable(false)]
public static bool EnableConnectionCache {get; set;}
[Browsable(false)]
public:
static property bool EnableConnectionCache {
   bool get();
   void set (    bool value);
}

Property Value

true to create and use a connection cache; otherwise, false.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also