WebContentTypeMapper 類別

定義

指定傳入訊息之內容型別要對應的格式。Specifies the format to which the content type of an incoming message is mapped.

public ref class WebContentTypeMapper abstract
public abstract class WebContentTypeMapper
type WebContentTypeMapper = class
Public MustInherit Class WebContentTypeMapper
繼承
WebContentTypeMapper

備註

這是程式設計模型中的擴充點,Web 訊息編碼器會用這個模型來覆寫內容型別對應至格式的方式。This is an extensibility point in the programming model that is used by the Web message encoder to override how content types are mapped to formats. 若要實作此類別,請覆寫 GetMessageFormatForContentType(String) 方法。To implement this class, override the GetMessageFormatForContentType(String) method.

建構函式

WebContentTypeMapper()

初始化 WebContentTypeMapper 類別的新執行個體。Initializes a new instance of the WebContentTypeMapper class.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetMessageFormatForContentType(String)

在衍生類別中覆寫時,傳回指定內容型別所使用的訊息格式。When overridden in a derived class, returns the message format used for a specified content type.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於