If a message is available within the timeout duration it is returned otherwise this method returns null
Namespace:
Apache.NMSAssembly: Apache.NMS (in Apache.NMS.dll)
Syntax
Visual Basic |
---|
Function Receive ( _ timeout As TimeSpan _ ) As IMessage |
C# |
---|
IMessage Receive( TimeSpan timeout ) |
Visual C++ |
---|
IMessage^ Receive( TimeSpan timeout ) |
JavaScript |
---|
function receive(timeout); |
Parameters
- timeout
- Type: System..::..TimeSpan