NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MessageQueue.BeginPeek

Returns the first message in the queue without removing it from the queue.

Overload List

Returns without removing (peeks) the first message available in the queue referenced by the MessageQueue. Waits the specified interval for a new message to become available and uses the specified object to retrieve the result.

[Visual Basic] Overloads Public Function BeginPeek(TimeSpan, Object) As IAsyncResult
[C#] public IAsyncResult BeginPeek(TimeSpan, Object);
[C++] public: IAsyncResult* BeginPeek(TimeSpan, Object);
[JScript] public function BeginPeek(TimeSpan, Object) : IAsyncResult;

Returns without removing (peeks) the first message available in the queue referenced by the MessageQueue. Waits the specified interval for a new message to become available, uses the specified object to retrieve the result, and receives notification through a callback.

[Visual Basic] Overloads Public Function BeginPeek(TimeSpan, Object, AsyncCallback) As IAsyncResult
[C#] public IAsyncResult BeginPeek(TimeSpan, Object, AsyncCallback);
[C++] public: IAsyncResult* BeginPeek(TimeSpan, Object, AsyncCallback);
[JScript] public function BeginPeek(TimeSpan, Object, AsyncCallback) : IAsyncResult;

Returns without removing (peeks) the first message available in the queue referenced by the MessageQueue.

[Visual Basic] Overloads Public Function BeginPeek() As IAsyncResult
[C#] public IAsyncResult BeginPeek();
[C++] public: IAsyncResult* BeginPeek();
[JScript] public function BeginPeek() : IAsyncResult;

Returns without removing (peeks) the first message available in the queue referenced by the MessageQueue. Waits the specified interval for a message to become available.

[Visual Basic] Overloads Public Function BeginPeek(TimeSpan) As IAsyncResult
[C#] public IAsyncResult BeginPeek(TimeSpan);
[C++] public: IAsyncResult* BeginPeek(TimeSpan);
[JScript] public function BeginPeek(TimeSpan) : IAsyncResult;

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace