Export (0) Print
Expand All

MessageExtensionMethods.ToHttpRequestMessage Method

.NET Framework 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
)

Parameters

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
Show:
© 2014 Microsoft