MessageExtensionMethods.ToHttpRequestMessage(Message) MessageExtensionMethods.ToHttpRequestMessage(Message) MessageExtensionMethods.ToHttpRequestMessage(Message) Method

定义

通过 HttpRequestMessage 实例创建 Message 实例。Creates a HttpRequestMessage instance from an Message instance.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Net::Http::HttpRequestMessage ^ ToHttpRequestMessage(System::ServiceModel::Channels::Message ^ message);
public static System.Net.Http.HttpRequestMessage ToHttpRequestMessage (this System.ServiceModel.Channels.Message message);
static member ToHttpRequestMessage : System.ServiceModel.Channels.Message -> System.Net.Http.HttpRequestMessage

参数

message
Message Message Message

要从其中获取 Message 实例的 HttpRequestMessage 实例。The Message instance from which to get the HttpRequestMessage instance.

返回

适用于