HttpResponseMessageExtensionMethods.ToMessage(HttpResponseMessage) メソッド

定義

Message インスタンスから HttpResponseMessage インスタンスを作成します。

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

パラメーター

httpResponseMessage
HttpResponseMessage

HttpResponseMessage インスタンスの作成元の Message

戻り値

Message

新しい Message インスタンス。

注釈

インスタンス Message は、従来のインスタンスと同じ方法で読み取り、書き込み、コピー ByteStreamMessage できます。 インスタンス Message は、拡張メソッドを呼び出すことによって元のインスタンス HttpResponseMessage を取得するために "読み取り" ToHttpResponseMessage することもできます。

適用対象