Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpRequestMessageExtensionMethods Class

.NET Framework 4.6 and 4.5

Provides extension methods for accessing user principal associated with the HTTP request message.

System::Object
  System.ServiceModel.Channels::HttpRequestMessageExtensionMethods

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

[ExtensionAttribute]
public ref class HttpRequestMessageExtensionMethods abstract sealed

The HttpRequestMessageExtensionMethods type exposes the following members.

  NameDescription
Public methodStatic memberGetUserPrincipalGets the user principal associated with the specified HTTP request message.
Public methodStatic memberSetUserPrincipalReplaces the user principal associated with the specified HTTP request message.
Public methodStatic memberToMessage Creates a Message instance from an HttpRequestMessage instance.
Top

.NET Framework

Supported in: 4.6, 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft