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
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.