MessageExtensionMethods.ToHttpRequestMessage(Message) 方法

定义

通过 HttpRequestMessage 实例创建 Message 实例。

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
<Extension()>
Public Function ToHttpRequestMessage (message As Message) As HttpRequestMessage

参数

message
Message

要从其中获取 Message 实例的 HttpRequestMessage 实例。

返回

HttpRequestMessage 实例。

适用于