HttpRequestMessageExtensionMethods.ToMessage(HttpRequestMessage) Method
Definition
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 HttpRequestMessage instance.
public:
[System::Runtime::CompilerServices::Extension]
static System::ServiceModel::Channels::Message ^ ToMessage(System::Net::Http::HttpRequestMessage ^ httpRequestMessage);
public static System.ServiceModel.Channels.Message ToMessage (this System.Net.Http.HttpRequestMessage httpRequestMessage);
static member ToMessage : System.Net.Http.HttpRequestMessage -> System.ServiceModel.Channels.Message
<Extension()>
Public Function ToMessage (httpRequestMessage As HttpRequestMessage) As Message
Parameters
- httpRequestMessage
- HttpRequestMessage
The HttpRequestMessage from which to create the Message instance.
Returns
The new Message instance.
Remarks
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 HttpRequestMessage instance by calling the ToHttpRequestMessage extension method.
Applies to
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir