System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / ReceiveCompleted Event



In This Topic
    ReceiveCompleted Event
    In This Topic
    Occurs when a message has been removed from the queue. This event is raised by the asynchronous operation, BeginReceive.
    Syntax
    'Declaration
     
    
    Public Event ReceiveCompleted As ReceiveCompletedEventHandler
    'Usage
     
    
    Dim instance As MessageQueue
    Dim handler As ReceiveCompletedEventHandler
     
    AddHandler instance.ReceiveCompleted, handler
    public event ReceiveCompletedEventHandler ReceiveCompleted
    public:
    event ReceiveCompletedEventHandler^ ReceiveCompleted
    Event Data

    The event handler receives an argument of type ReceiveCompletedEventArgs containing data related to this event. The following ReceiveCompletedEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets the result of the asynchronous operation requested.  
    Gets the message associated with the asynchronous receive operation.  
    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