संपादित करें

इसके माध्यम से साझा किया गया


HttpRequestMessageExtensionMethods.ToMessage(HttpRequestMessage) Method

Definition

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