System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / EnableConnectionCache Property



In This Topic
    EnableConnectionCache Property
    In This Topic
    Gets or sets a value that indicates whether a cache of connections will be maintained by the application.
    Syntax
    'Declaration
     
    
    Public Shared Property EnableConnectionCache As Boolean
    'Usage
     
    
    Dim value As Boolean
     
    MessageQueue.EnableConnectionCache = value
     
    value = MessageQueue.EnableConnectionCache
    public static bool EnableConnectionCache {get; set;}
    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