WebContentTypeMapper 类

定义

指定传入消息的内容类型映射到的格式。

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

注解

这是 Web 消息编码器用来替代内容类型映射到格式的编程模型中的扩展点。 若要实现此类,请重写 GetMessageFormatForContentType(String) 该方法。

构造函数

名称 说明
WebContentTypeMapper()

初始化 WebContentTypeMapper 类的新实例。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetMessageFormatForContentType(String)

在派生类中重写时,返回用于指定内容类型的消息格式。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于