ClientBase<TChannel>.ChannelBase<T>.IRequestChannel.Request Method

Definition

发送一个基于消息的请求。Sends a message-based request.

Overloads

IRequestChannel.Request(Message)

发送一个基于消息的请求,并返回相关的基于消息的响应。Sends a message-based request and returns the correlated message-based response.

IRequestChannel.Request(Message, TimeSpan)

发送一个基于消息的请求,并在指定的时间间隔内返回相关的基于消息的响应。Sends a message-based request and returns the correlated message-based response within a specified interval of time.

IRequestChannel.Request(Message)

发送一个基于消息的请求,并返回相关的基于消息的响应。Sends a message-based request and returns the correlated message-based response.

 virtual System::ServiceModel::Channels::Message ^ System.ServiceModel.Channels.IRequestChannel.Request(System::ServiceModel::Channels::Message ^ message) = System::ServiceModel::Channels::IRequestChannel::Request;
System.ServiceModel.Channels.Message IRequestChannel.Request (System.ServiceModel.Channels.Message message);
abstract member System.ServiceModel.Channels.IRequestChannel.Request : System.ServiceModel.Channels.Message -> System.ServiceModel.Channels.Message
override this.System.ServiceModel.Channels.IRequestChannel.Request : System.ServiceModel.Channels.Message -> System.ServiceModel.Channels.Message
Function Request (message As Message) As Message Implements IRequestChannel.Request

Parameters

message
Message

待传输的请求消息。The request message to be transmitted.

Returns

Message

以响应该请求接收的消息 。The message received in response to the request.

Implements

IRequestChannel.Request(Message, TimeSpan)

发送一个基于消息的请求,并在指定的时间间隔内返回相关的基于消息的响应。Sends a message-based request and returns the correlated message-based response within a specified interval of time.

 virtual System::ServiceModel::Channels::Message ^ System.ServiceModel.Channels.IRequestChannel.Request(System::ServiceModel::Channels::Message ^ message, TimeSpan timeout) = System::ServiceModel::Channels::IRequestChannel::Request;
System.ServiceModel.Channels.Message IRequestChannel.Request (System.ServiceModel.Channels.Message message, TimeSpan timeout);
abstract member System.ServiceModel.Channels.IRequestChannel.Request : System.ServiceModel.Channels.Message * TimeSpan -> System.ServiceModel.Channels.Message
override this.System.ServiceModel.Channels.IRequestChannel.Request : System.ServiceModel.Channels.Message * TimeSpan -> System.ServiceModel.Channels.Message
Function Request (message As Message, timeout As TimeSpan) As Message Implements IRequestChannel.Request

Parameters

message
Message

待传输的请求消息。The request message to be transmitted.

timeout
TimeSpan

指定时间间隔的时间跨度,在此时间间隔内必须收到响应。The timespan that specifies the interval of time within which a response must be received.

Returns

Message

以响应该请求接收的消息 。The message received in response to the request.

Implements

Applies to