Export (0) Print
Expand All

MessageQueue Methods

The MessageQueue type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework BeginPeek Overloaded. Initiates an asynchronous peek operation by telling Message Queuing to begin peeking a message and notify the event handler when finished.
Public method Supported by the .NET Compact Framework BeginReceive Overloaded. Initiates an asynchronous receive operation by telling Message Queuing to begin receiving a message and notify the event handler when finished.
Public method Static member Supported by the .NET Compact Framework ClearConnectionCache Clears the connection cache.
Public method Supported by the .NET Compact Framework Close Frees all resources allocated by the MessageQueue.
Public method Static member Supported by the .NET Compact Framework Create Overloaded. Creates a new queue at the specified path on a Message Queuing server.
Public method CreateCursor Creates a new Cursor for the current message queue.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Static member Supported by the .NET Compact Framework Delete Deletes a queue on a Message Queuing server.
Public method Supported by the .NET Compact Framework Dispose Overloaded. Disposes of the resources (other than memory) used by the MessageQueue.
Public method Supported by the .NET Compact Framework EndPeek Completes the specified asynchronous peek operation.
Public method Supported by the .NET Compact Framework EndReceive Completes the specified asynchronous receive operation.
Public method Supported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Exists Determines whether a Message Queuing queue exists at the specified path.
Protected method Supported by the .NET Compact Framework Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method Supported by the .NET Compact Framework GetAllMessages Returns all the messages that are in the queue.
Public method Supported by the .NET Compact Framework GetEnumerator Obsolete. Enumerates the messages in a queue. GetEnumerator is deprecated. GetMessageEnumerator2 should be used instead.
Public method Supported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Static member Supported by the .NET Compact Framework GetMachineId Gets the identifier of the computer on which the queue referenced by this MessageQueue is located.
Public method Supported by the .NET Compact Framework GetMessageEnumerator Obsolete. Creates an enumerator object for all the messages in the queue. GetMessageEnumerator is deprecated. GetMessageEnumerator2 should be used instead.
Public method GetMessageEnumerator2 Creates an enumerator object for all the messages in the queue.
Public method Static member GetMessageQueueEnumerator Overloaded. Creates an enumerator object for a dynamic listing of the public queues on the network.
Public method Static member Supported by the .NET Compact Framework GetPrivateQueuesByMachine Retrieves all the private queues on the specified computer.
Public method Static member GetPublicQueues Overloaded. Retrieves all the public queues on the network.
Public method Static member GetPublicQueuesByCategory Retrieves all the public queues on the network that belong to the specified category.
Public method Static member GetPublicQueuesByLabel Retrieves all the public queues on the network that carry the specified label.
Public method Static member GetPublicQueuesByMachine Retrieves all the public queues that reside on the specified computer.
Public method Static member GetSecurityContext Retrieves the security context that MSMQ associates with the current user (thread identity) at the time of this call.
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method Supported by the .NET Compact Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by the .NET Compact Framework MemberwiseClone Overloaded.
Public method Supported by the .NET Compact Framework Peek Overloaded. Returns a copy of the first message in the queue without removing the message from the queue.
Public method Supported by the .NET Compact Framework PeekByCorrelationId Overloaded. Peeks a message that matches a given correlation identifier.
Public method Supported by the .NET Compact Framework PeekById Overloaded. Returns a copy of the message that has the specified message identifier without removing the message from the queue.
Public method PeekByLookupId Overloaded. 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.
Public method Supported by the .NET Compact Framework Purge Deletes all the messages contained in the queue.
Public method Supported by the .NET Compact Framework Receive Overloaded. Receives the first message in the queue, removing it from the queue.
Public method Supported by the .NET Compact Framework ReceiveByCorrelationId Overloaded. Receives a message that matches a given correlation identifier.
Public method Supported by the .NET Compact Framework ReceiveById Overloaded. Receives the message that matches the given identifier, removing it from the queue.
Public method ReceiveByLookupId Overloaded. Introduced in MSMQ 3.0. Receives 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.
Public method Supported by the .NET Compact Framework Refresh Refreshes the properties presented by the MessageQueue to reflect the current state of the resource.
Public method ResetPermissions Resets the permission list to the operating system's default values. Removes any queue permissions you have appended to the default list.
Public method Supported by the .NET Compact Framework Send Overloaded. Sends an object to a queue.
Public method SetPermissions Overloaded. Adds permissions to the current set. This controls who has access rights to queue properties and messages in the queue.
Public method Supported by the .NET Compact Framework ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)

In .NET Compact Framework 3.5, this member is inherited from Object.ToString().
Top

  NameDescription
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

Community Additions

ADD
Show:
© 2015 Microsoft