System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueueException Class / MessageQueueException Constructor
A System.Runtime.Serialization.SerializationInfo that holds the serialized data associated with the MessageQueueException.
A System.Runtime.Serialization.StreamingContext that contains the source and destination of the serialized stream associated with the MessageQueueException.



In This Topic
    MessageQueueException Constructor
    In This Topic
    Initializes a new instance of the MessageQueueException class with serialized data.
    Syntax
    'Declaration
     
    
    Protected Function New( _
       ByVal info As SerializationInfo, _
       ByVal context As StreamingContext _
    )
    'Usage
     
    
    Dim info As SerializationInfo
    Dim context As StreamingContext
     
    Dim instance As New MessageQueueException(info, context)
    protected MessageQueueException( 
       SerializationInfo info,
       StreamingContext context
    )
    protected:
    MessageQueueException( 
       SerializationInfo^ info,
       StreamingContext context
    )

    Parameters

    info
    A System.Runtime.Serialization.SerializationInfo that holds the serialized data associated with the MessageQueueException.
    context
    A System.Runtime.Serialization.StreamingContext that contains the source and destination of the serialized stream associated with the MessageQueueException.
    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