Export (0) Print
Expand All

MessageExtensionMethods.ToHttpResponseMessage Method

.NET Framework 4.6 and 4.5

Creates a HttpResponseMessage instance from an Message instance.

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

public static HttpResponseMessage ToHttpResponseMessage(
	this Message message
)

Parameters

message
Type: System.ServiceModel.Channels.Message

The Message instance from which to get the HttpResponseMessage 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
Show:
© 2015 Microsoft