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() |
获取当前实例的 Type。Gets 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) |