HttpResponseMessageExtensionMethods.ToMessage(HttpResponseMessage) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en Message instans från en HttpResponseMessage instans.
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
Parametrar
- httpResponseMessage
- HttpResponseMessage
Varifrån HttpResponseMessage instansen Message ska skapas.
Returer
Den nya Message instansen.
Kommentarer
Instansen Message kan läsas, skrivas och kopieras precis som en traditionell ByteStreamMessage instans. Instansen Message kan också "läsa" för att hämta den ursprungliga HttpResponseMessage instansen ToHttpResponseMessage genom att anropa tilläggsmetoden.