MessageExtensionMethods.ToHttpRequestMessage Method

.NET Framework 4.6 and 4.5

Creates a HttpRequestMessage instance from an Message instance.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel.Channels (in System.ServiceModel.Channels.dll)

public static HttpRequestMessage ToHttpRequestMessage(
	this Message message


Type: System.ServiceModel.Channels.Message

The Message instance from which to get the HttpRequestMessage instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Message. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft