'Declaration
Public Overloads Function Receive( _ ByVal timeout As TimeSpan, _ ByVal transactionType As MessageQueueTransactionType _ ) As Message
'Usage
Dim instance As MessageQueue Dim timeout As TimeSpan Dim transactionType As MessageQueueTransactionType Dim value As Message value = instance.Receive(timeout, transactionType)
public Message Receive( TimeSpan timeout, MessageQueueTransactionType transactionType )
public: Message^ Receive( TimeSpan timeout, MessageQueueTransactionType transactionType )
Parameters
- timeout
- A System.TimeSpan that indicates the time to wait until a new message is available for inspection.
- transactionType
- One of the MessageQueueTransactionType values, describing the type of transaction context to associate with the message.
Return Value
A Message that references the first message available in the queue.