MessageExtensionMethods.ToHttpResponseMessage(Message) 方法

定义

通过 HttpResponseMessage 实例创建 Message 实例。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Net::Http::HttpResponseMessage ^ ToHttpResponseMessage(System::ServiceModel::Channels::Message ^ message);
public static System.Net.Http.HttpResponseMessage ToHttpResponseMessage (this System.ServiceModel.Channels.Message message);
static member ToHttpResponseMessage : System.ServiceModel.Channels.Message -> System.Net.Http.HttpResponseMessage
<Extension()>
Public Function ToHttpResponseMessage (message As Message) As HttpResponseMessage

参数

message
Message

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

返回

HttpResponseMessage 实例。

适用于