MessageQueue Methods

 

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

NameDescription
System_CAPS_pubmethodBeginPeek()

Initiates an asynchronous peek operation that has no time-out. The operation is not complete until a message becomes available in the queue.

System_CAPS_pubmethodBeginPeek(TimeSpan)

Initiates an asynchronous peek operation that has a specified time-out. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

System_CAPS_pubmethodBeginPeek(TimeSpan, Cursor, PeekAction, Object, AsyncCallback)

Initiates an asynchronous peek operation that has a specified time-out and that uses a specified cursor, a specified peek action, and a specified state object. The state object provides associated information throughout the lifetime of the operation. This overload receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

System_CAPS_pubmethodBeginPeek(TimeSpan, Object)

Initiates an asynchronous peek operation that has a specified time-out and a specified state object, which provides associated information throughout the operation's lifetime. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

System_CAPS_pubmethodBeginPeek(TimeSpan, Object, AsyncCallback)

Initiates an asynchronous peek operation that has a specified time-out and a specified state object, which provides associated information throughout the operation's lifetime. This overload receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

System_CAPS_pubmethodBeginReceive()

Initiates an asynchronous receive operation that has no time-out. The operation is not complete until a message becomes available in the queue.

System_CAPS_pubmethodBeginReceive(TimeSpan)

Initiates an asynchronous receive operation that has a specified time-out. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

System_CAPS_pubmethodBeginReceive(TimeSpan, Cursor, Object, AsyncCallback)

Initiates an asynchronous receive operation that has a specified time-out and uses a specified cursor and a specified state object. The state object provides associated information throughout the lifetime of the operation. This overload receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

System_CAPS_pubmethodBeginReceive(TimeSpan, Object)

Initiates an asynchronous receive operation that has a specified time-out and a specified state object, which provides associated information throughout the operation's lifetime. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

System_CAPS_pubmethodBeginReceive(TimeSpan, Object, AsyncCallback)

Initiates an asynchronous receive operation that has a specified time-out and a specified state object, which provides associated information throughout the operation's lifetime. This overload receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the queue or the time-out occurs.

System_CAPS_pubmethodSystem_CAPS_staticClearConnectionCache()

Clears the connection cache.

System_CAPS_pubmethodClose()

Frees all resources allocated by the MessageQueue.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String)

Creates a non-transactional Message Queuing queue at the specified path.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String, Boolean)

Creates a transactional or non-transactional Message Queuing queue at the specified path.

System_CAPS_pubmethodCreateCursor()

Creates a new Cursor for the current message queue.

System_CAPS_pubmethodCreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodSystem_CAPS_staticDelete(String)

Deletes a queue on a Message Queuing server.

System_CAPS_pubmethodDispose()

Releases all resources used by the Component.(Inherited from Component.)

System_CAPS_protmethodDispose(Boolean)

Disposes of the resources (other than memory) used by the MessageQueue.(Overrides Component.Dispose(Boolean).)

System_CAPS_pubmethodEndPeek(IAsyncResult)

Completes the specified asynchronous peek operation.

System_CAPS_pubmethodEndReceive(IAsyncResult)

Completes the specified asynchronous receive operation.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticExists(String)

Determines whether a Message Queuing queue exists at the specified path.

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.(Inherited from Component.)

System_CAPS_pubmethodGetAllMessages()

Returns all the messages that are in the queue.

System_CAPS_pubmethodGetEnumerator()

Obsolete. Enumerates the messages in a queue. GetEnumerator is deprecated. GetMessageEnumerator2 should be used instead.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodSystem_CAPS_staticGetMachineId(String)

Gets the identifier of the computer on which the queue referenced by this MessageQueue is located.

System_CAPS_pubmethodGetMessageEnumerator()

Obsolete. Creates an enumerator object for all the messages in the queue. GetMessageEnumerator is deprecated. GetMessageEnumerator2 should be used instead.

System_CAPS_pubmethodGetMessageEnumerator2()

Creates an enumerator object for all the messages in the queue.

System_CAPS_pubmethodSystem_CAPS_staticGetMessageQueueEnumerator()

Provides forward-only cursor semantics to enumerate through all public queues on the network.

System_CAPS_pubmethodSystem_CAPS_staticGetMessageQueueEnumerator(MessageQueueCriteria)

Provides forward-only cursor semantics to enumerate through all public queues on the network that meet the specified criteria.

System_CAPS_pubmethodSystem_CAPS_staticGetPrivateQueuesByMachine(String)

Retrieves all the private queues on the specified computer.

System_CAPS_pubmethodSystem_CAPS_staticGetPublicQueues()

Retrieves all the public queues on the network.

System_CAPS_pubmethodSystem_CAPS_staticGetPublicQueues(MessageQueueCriteria)

Retrieves all the public queues on the network that meet the specified criteria.

System_CAPS_pubmethodSystem_CAPS_staticGetPublicQueuesByCategory(Guid)

Retrieves all the public queues on the network that belong to the specified category.

System_CAPS_pubmethodSystem_CAPS_staticGetPublicQueuesByLabel(String)

Retrieves all the public queues on the network that carry the specified label.

System_CAPS_pubmethodSystem_CAPS_staticGetPublicQueuesByMachine(String)

Retrieves all the public queues that reside on the specified computer.

System_CAPS_pubmethodSystem_CAPS_staticGetSecurityContext()

Retrieves the security context that MSMQ associates with the current user (thread identity) at the time of this call.

System_CAPS_protmethodGetService(Type)

Returns an object that represents a service provided by the Component or by its Container.(Inherited from Component.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodPeek()

Returns without removing (peeks) the first message in the queue referenced by this MessageQueue. The Peek method is synchronous, so it blocks the current thread until a message becomes available.

System_CAPS_pubmethodPeek(TimeSpan)

Returns without removing (peeks) the first message in the queue referenced by this MessageQueue. The Peek method is synchronous, so it blocks the current thread until a message becomes available or the specified time-out occurs.

System_CAPS_pubmethodPeek(TimeSpan, Cursor, PeekAction)

Returns without removing (peeks) the current or next message in the queue, using the specified cursor. The Peek method is synchronous, so it blocks the current thread until a message becomes available or the specified time-out occurs.

System_CAPS_pubmethodPeekByCorrelationId(String)

Peeks the message that matches the given correlation identifier and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.

System_CAPS_pubmethodPeekByCorrelationId(String, TimeSpan)

Peeks the message that matches the given correlation identifier and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.

System_CAPS_pubmethodPeekById(String)

Peeks the message whose message identifier matches the id parameter.

System_CAPS_pubmethodPeekById(String, TimeSpan)

Peeks the message whose message identifier matches the id parameter. Waits until the message appears in the queue or a time-out occurs.

System_CAPS_pubmethodPeekByLookupId(Int64)

Introduced in MSMQ 3.0. Peeks at the message that matches the given lookup identifier from a non-transactional queue.

System_CAPS_pubmethodPeekByLookupId(MessageLookupAction, Int64)

Introduced in MSMQ 3.0. Peeks at a specific message from the queue. The message can be specified by a lookup identifier or by its position at the front or end of the queue.

System_CAPS_pubmethodPurge()

Deletes all the messages contained in the queue.

System_CAPS_pubmethodReceive()

Receives the first message available in the queue referenced by the MessageQueue. This call is synchronous, and blocks the current thread of execution until a message is available.

System_CAPS_pubmethodReceive(MessageQueueTransaction)

Receives the first message available in the transactional queue referenced by the MessageQueue. This call is synchronous, and blocks the current thread of execution until a message is available.

System_CAPS_pubmethodReceive(MessageQueueTransactionType)

Receives the first message available in the queue referenced by the MessageQueue. This call is synchronous, and blocks the current thread of execution until a message is available.

System_CAPS_pubmethodReceive(TimeSpan)

Receives the first message available in the queue referenced by the MessageQueue and waits until either a message is available in the queue, or the time-out expires.

System_CAPS_pubmethodReceive(TimeSpan, Cursor)

Receives the current message in the queue, using a specified cursor. If no message is available, this method waits until either a message is available, or the time-out expires.

System_CAPS_pubmethodReceive(TimeSpan, Cursor, MessageQueueTransaction)

Receives the current message in the queue, using a specified cursor. If no message is available, this method waits until either a message is available, or the time-out expires.

System_CAPS_pubmethodReceive(TimeSpan, Cursor, MessageQueueTransactionType)

Receives the current message in the queue, using a specified cursor. If no message is available, this method waits until either a message is available, or the time-out expires.

System_CAPS_pubmethodReceive(TimeSpan, MessageQueueTransaction)

Receives the first message available in the transactional queue referenced by the MessageQueue and waits until either a message is available in the queue, or the time-out expires.

System_CAPS_pubmethodReceive(TimeSpan, MessageQueueTransactionType)

Receives the first message available in the queue referenced by the MessageQueue. This call is synchronous, and waits until either a message is available in the queue, or the time-out expires.

System_CAPS_pubmethodReceiveByCorrelationId(String)

Receives the message that matches the given correlation identifier (from a non-transactional queue) and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.

System_CAPS_pubmethodReceiveByCorrelationId(String, MessageQueueTransaction)

Receives the message that matches the given correlation identifier (from a transactional queue) and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.

System_CAPS_pubmethodReceiveByCorrelationId(String, MessageQueueTransactionType)

Receives the message that matches the given correlation identifier and immediately raises an exception if no message with the specified correlation identifier currently exists in the queue.

System_CAPS_pubmethodReceiveByCorrelationId(String, TimeSpan)

Receives the message that matches the given correlation identifier (from a non-transactional queue) and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.

System_CAPS_pubmethodReceiveByCorrelationId(String, TimeSpan, MessageQueueTransaction)

Receives the message that matches the given correlation identifier (from a transactional queue) and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.

System_CAPS_pubmethodReceiveByCorrelationId(String, TimeSpan, MessageQueueTransactionType)

Receives the message that matches the given correlation identifier and waits until either a message with the specified correlation identifier is available in the queue, or the time-out expires.

System_CAPS_pubmethodReceiveById(String)

Receives the message that matches the given identifier from a non-transactional queue and immediately raises an exception if no message with the specified identifier currently exists in the queue.

System_CAPS_pubmethodReceiveById(String, MessageQueueTransaction)

Receives the message that matches the given identifier (from a transactional queue) and immediately raises an exception if no message with the specified identifier currently exists in the queue.

System_CAPS_pubmethodReceiveById(String, MessageQueueTransactionType)

Receives the message that matches the given identifier and immediately raises an exception if no message with the specified identifier currently exists in the queue.

System_CAPS_pubmethodReceiveById(String, TimeSpan)

Receives the message that matches the given identifier (from a non-transactional queue) and waits until either a message with the specified identifier is available in the queue or the time-out expires.

System_CAPS_pubmethodReceiveById(String, TimeSpan, MessageQueueTransaction)

Receives the message that matches the given identifier (from a transactional queue) and waits until either a message with the specified identifier is available in the queue or the time-out expires.

System_CAPS_pubmethodReceiveById(String, TimeSpan, MessageQueueTransactionType)

Receives the message that matches the given identifier and waits until either a message with the specified identifier is available in the queue or the time-out expires.

System_CAPS_pubmethodReceiveByLookupId(Int64)

Introduced in MSMQ 3.0. Receives the message that matches the given lookup identifier from a non-transactional queue.

System_CAPS_pubmethodReceiveByLookupId(MessageLookupAction, Int64, MessageQueueTransaction)

Introduced in MSMQ 3.0. Receives a specific message from a transactional queue. The message can be specified by a lookup identifier or by its position at the front or end of the queue.

System_CAPS_pubmethodReceiveByLookupId(MessageLookupAction, Int64, MessageQueueTransactionType)

Introduced in MSMQ 3.0. Receives a specific message from the queue, using the specified transaction context. The message can be specified by a lookup identifier or by its position at the front or end of the queue.

System_CAPS_pubmethodRefresh()

Refreshes the properties presented by the MessageQueue to reflect the current state of the resource.

System_CAPS_pubmethodResetPermissions()

Resets the permission list to the operating system's default values. Removes any queue permissions you have appended to the default list.

System_CAPS_pubmethodSend(Object)

Sends an object to non-transactional queue referenced by this MessageQueue.

System_CAPS_pubmethodSend(Object, MessageQueueTransaction)

Sends an object to the transactional queue referenced by this MessageQueue.

System_CAPS_pubmethodSend(Object, MessageQueueTransactionType)

Sends an object to the queue referenced by this MessageQueue.

System_CAPS_pubmethodSend(Object, String)

Sends an object to the non-transactional queue referenced by this MessageQueue and specifies a label for the message.

System_CAPS_pubmethodSend(Object, String, MessageQueueTransaction)

Sends an object to the transactional queue referenced by this MessageQueue and specifies a label for the message.

System_CAPS_pubmethodSend(Object, String, MessageQueueTransactionType)

Sends an object to the queue referenced by this MessageQueue and specifies a label for the message.

System_CAPS_pubmethodSetPermissions(AccessControlList)

Assigns access rights to the queue based on the contents of an access control list.

System_CAPS_pubmethodSetPermissions(MessageQueueAccessControlEntry)

Assigns access rights to the queue based on the contents of an access control entry.

System_CAPS_pubmethodSetPermissions(String, MessageQueueAccessRights)

Gives a computer, group, or user the specified access rights.

System_CAPS_pubmethodSetPermissions(String, MessageQueueAccessRights, AccessControlEntryType)

Gives a computer, group, or user the specified access rights, with the specified access control type (allow, deny, revoke, or set).

System_CAPS_pubmethodToString()

Returns a String containing the name of the Component, if any. This method should not be overridden.(Inherited from Component.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

Return to top
Show: