MessageExtensionMethods.ToHttpResponseMessage(Message) MessageExtensionMethods.ToHttpResponseMessage(Message) MessageExtensionMethods.ToHttpResponseMessage(Message) Method

定义

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

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

参数

message
Message Message Message

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

返回

适用于