MessageExtensionMethods 類別

定義

用於從 HttpRequestMessage 執行個體取得 HttpResponseMessageMessage 執行個體的靜態擴充方法類別。A static extension methods class for getting either an HttpRequestMessage or HttpResponseMessage instance from a Message instance.

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

方法

ToHttpRequestMessage(Message)

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

ToHttpResponseMessage(Message)

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

適用於