MessageQueue Members
Public Constructors
MessageQueue Constructor | Overloaded. Initializes a new instance of the MessageQueue class. |
Public Fields
![]() InfiniteQueueSize | Specifies that no size restriction exists for a queue. |
![]() InfiniteTimeout | Specifies that no time-out exists for methods that peek or receive messages. |
Public Properties
Authenticate | Gets or sets a value indicating whether the queue accepts only authenticated messages. |
BasePriority | Gets or sets the base priority Message Queuing uses to route a public queue's messages over the network. |
CanRead | Gets a value indicating whether the MessageQueue can be read. |
CanWrite | Gets a value indicating whether the MessageQueue can be written to. |
Category | Gets or sets the queue category. |
Container (inherited from Component) | Gets the IContainer that contains the Component. |
CreateTime | Gets the time and date that the queue was created in Message Queuing. |
DefaultPropertiesToSend | Gets or sets the message property values to be used by default when the application sends messages to the queue. |
DenySharedReceive | Gets or sets a value indicating whether this MessageQueue has exclusive access to receive messages from the Message Queuing queue. |
![]() EnableConnectionCache | Gets or sets a value indicating whether a cache of connections will be maintained by the application. |
EncryptionRequired | Gets or sets a value indicating whether the queue accepts only nonprivate (nonencrypted) messages. |
FormatName | Gets the unique queue name that Message Queuing generated at the time of the queue's creation. |
Formatter | Gets or sets the formatter used to serialize an object into or deserialize an object from the body of a message read from or written to the queue. |
Id | Gets the unique Message Queuing identifier of the queue. |
Label | Gets or sets the queue description. |
LastModifyTime | Gets the last time the properties of a queue were modified. |
MachineName | Gets or sets the name of the computer where the Message Queuing queue is located. |
MaximumJournalSize | Gets or sets the maximum size of the journal queue. |
MaximumQueueSize | Gets or sets the maximum size of the queue. |
MessageReadPropertyFilter | Gets or sets the property filter for receiving or peeking messages. |
Path | Gets or sets the queue's path. Setting the Path causes the MessageQueue to point to a new queue. |
QueueName | Gets or sets the friendly name that identifies the queue. |
ReadHandle | Gets the native handle used to read messages from the message queue. |
Site (inherited from Component) | Gets or sets the ISite of the Component. |
SynchronizingObject | Gets or sets the object that marshals the event-handler call resulting from a ReceiveCompleted or PeekCompleted event. |
Transactional | Gets a value indicating whether the queue accepts only transactions. |
UseJournalQueue | Gets or sets a value indicating whether received messages are copied to the journal queue. |
WriteHandle | Gets the native handle used to send messages to the message queue. |
Public Methods
BeginPeek | Overloaded. Initiates an asynchronous peek operation by telling Message Queuing to begin peeking a message and notify the event handler when finished. |
BeginReceive | Overloaded. Initiates an asynchronous receive operation by telling Message Queuing to begin receiving a message and notify the event handler when finished. |
![]() ClearConnectionCache | Clears the connection cache. |
Close | Frees all resources allocated by the MessageQueue. |
![]() Create | Overloaded. Creates a new queue at the specified path on a Message Queuing server. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
![]() Delete | Deletes a queue on a Message Queuing server. |
Dispose (inherited from Component) | Overloaded. Releases the resources used by the Component. |
EndPeek | Completes the specified asynchronous peek operation. |
EndReceive | Completes the specified asynchronous receive operation. |
Equals (inherited from Object) | Overloaded. Determines whether two Object instances are equal. |
![]() Exists | Determines whether a Message Queuing queue at the specified path exists. |
GetAllMessages | Returns all the messages that are in the queue. |
GetEnumerator | Enumerates the messages in a queue. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
![]() GetMachineId | Gets the identifier of the computer on which the queue referenced by this MessageQueue is located. |
GetMessageEnumerator | Creates an enumerator object for all the messages in the queue. |
![]() GetMessageQueueEnumerator | Overloaded. Creates an enumerator object for a dynamic listing of the public queues on the network. |
![]() GetPrivateQueuesByMachine | Retrieves all the private queues on the specified computer. |
![]() GetPublicQueues | Overloaded. Retrieves all the public queues on the network. |
![]() GetPublicQueuesByCategory | Retrieves all the public queues on the network that belong to the specified category. |
![]() GetPublicQueuesByLabel | Retrieves all the public queues on the network that carry the specified label. |
![]() GetPublicQueuesByMachine | Retrieves all the public queues that reside on the specified computer. |
GetType (inherited from Object) | Gets the Type of the current instance. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
Peek | Overloaded. Returns a copy of the first message in the queue, without removing the message from the queue. |
PeekByCorrelationId | Overloaded. Peeks a message that matches a given correlation identifier. |
PeekById | Overloaded. Returns a copy of the message that has the specified message identifier, without removing the message from the queue. |
Purge | Deletes all the messages contained in the queue. |
Receive | Overloaded. Receives the first message in the queue, removing it from the queue. |
ReceiveByCorrelationId | Overloaded. Receives a message that matches a given correlation identifier. |
ReceiveById | Overloaded. Receives the message that matches the given identifier, removing it from the queue. |
Refresh | Refreshes the properties presented by the MessageQueue to reflect the current state of the resource. |
ResetPermissions | Resets the permission list to the operating system's default values. Removes any queue permissions you have appended to the default list. |
Send | Overloaded. Sends an object to a queue. |
SetPermissions | Overloaded. Adds permissions to the current set. This controls who has access rights to queue properties and messages in the queue. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Public Events
Disposed (inherited from Component) | Adds an event handler to listen to the Disposed event on the component. |
PeekCompleted | Occurs when a message is read without being removed from the queue. This is a result of the asynchronous operation, BeginPeek. |
ReceiveCompleted | Occurs when a message has been removed from the queue. This event is raised by the asynchronous operation, BeginReceive. |
Protected Properties
DesignMode (inherited from Component) | Gets a value that indicates whether the Component is currently in design mode. |
Events (inherited from Component) | Gets the list of event handlers that are attached to this Component. |
Protected Methods
Dispose | Overloaded. Overridden. See Component.Dispose. |
Finalize (inherited from Component) | Overridden. Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
GetService (inherited from Component) | Returns an object that represents a service provided by the Component or by its Container. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |






