HttpResponseMessageExtensionMethods.ToMessage(HttpResponseMessage) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a Message instance from an HttpResponseMessage instance.
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
The HttpResponseMessage from which to create the Message instance.
The new Message instance.
The Message instance can be read, written and copied just as a traditional ByteStreamMessage instance. The Message instance can also "read" to retrieve the original HttpResponseMessage instance by calling the ToHttpResponseMessage extension method.
Produs | Versiuni |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback pentru .NET
.NET este un proiect open source. Selectați un link pentru a oferi feedback: