IRequestChannel.Request Method (Message, TimeSpan)
Collapse the table of content
Expand the table of content

ClientBase(Of TChannel).ChannelBase(Of T).IRequestChannel.Request Method (Message, TimeSpan)

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

Sends a message-based request and returns the correlated message-based response within a specified interval of time.

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

'Declaration
Private Function Request ( _
	message As Message, _
	timeout As TimeSpan _
) As Message Implements IRequestChannel.Request

Parameters

message
Type: System.ServiceModel.Channels.Message
The request Message to be transmitted.
timeout
Type: System.TimeSpan
The TimeSpan that specifies the interval of time within which a response must be received.

Return Value

Type: System.ServiceModel.Channels.Message
The Message received in response to the request.

Implements

IRequestChannel.Request(Message, TimeSpan)

Passing the message into the request channel causes the message to be consumed. After you call Request, you can no longer inspect the message or call Close on the message.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft