EndTryReceive Method

IInputChannel.EndTryReceive Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Completes the specified asynchronous operation to receive a message.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

bool EndTryReceive(
	IAsyncResult result,
	out Message message
)

Parameters

result
Type: System.IAsyncResult
The IAsyncResult returned by a call to the BeginTryReceive method.
message
Type: System.ServiceModel.Channels.Message %
The Message received.

Return Value

Type: System.Boolean
true if a message is received before the specified interval of time elapses; otherwise false.

The following code shows how to implement this method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft