PeekById(String) Method
Peeks the message whose message identifier matches the id parameter.
Syntax
'Usage Dim instance As MessageQueue Dim id As String Dim value As Message value = instance.PeekById(id)
Parameters
- id
- The Id of the message to peek.
Return Value
Exceptions
Exception | Description |
---|---|
System.ArgumentNullException | The id parameter is null. |
System.InvalidOperationException | No message with the specified id exists. |
MessageQueueException | An error occurred when accessing a Message Queuing method. |
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