HttpRequestMessageExtensionMethods 類別

定義

提供擴充方法,用來存取與 HTTP 要求訊息相關聯的使用者主體。Provides extension methods for accessing user principal associated with the HTTP request message.

public ref class HttpRequestMessageExtensionMethods abstract sealed
public static class HttpRequestMessageExtensionMethods
type HttpRequestMessageExtensionMethods = class
Public Module HttpRequestMessageExtensionMethods
繼承
HttpRequestMessageExtensionMethods

方法

GetUserPrincipal(HttpRequestMessage)

取得與指定之 HTTP 要求訊息相關聯的使用者主體。Gets the user principal associated with the specified HTTP request message.

SetUserPrincipal(HttpRequestMessage, IPrincipal)

取代與指定之 HTTP 要求訊息相關聯的使用者主體。Replaces the user principal associated with the specified HTTP request message.

ToMessage(HttpRequestMessage)

Message 執行個體建立 HttpRequestMessage 執行個體。Creates a Message instance from an HttpRequestMessage instance.

適用於