MessageQueue Constructor (String, Boolean, Boolean, QueueAccessMode)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the MessageQueue class.

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

new : 
        path:string *
        sharedModeDenyReceive:bool *
        enableCache:bool *
        accessMode:QueueAccessMode -> MessageQueue

Parameters

path
Type: System.String

The location of the queue referenced by this MessageQueue, which can be "." for the local computer.

sharedModeDenyReceive
Type: System.Boolean

true to grant exclusive read access to the first application that accesses the queue; otherwise, false.

enableCache
Type: System.Boolean

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

accessMode
Type: System.Messaging.QueueAccessMode

One of the QueueAccessMode values.

.NET Framework
Available since 2.0
Return to top
Show: