共用方式為


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 執行個體。

適用於