InputFormatter.CanReadType(Type) 方法

定义

确定这 InputFormatter 是否可以反序列化给定 type的 对象。

protected:
 virtual bool CanReadType(Type ^ type);
protected virtual bool CanReadType (Type type);
abstract member CanReadType : Type -> bool
override this.CanReadType : Type -> bool
Protected Overridable Function CanReadType (type As Type) As Boolean

参数

type
Type

Type将要读取的 对象的 。

返回

truetype如果 可以读取 ,则为 ;否则为 false

适用于