OutputFormatter.CanWriteType(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个值,该值指示此序列化程序是否可以写入给定类型。
protected:
virtual bool CanWriteType(Type ^ type);
protected virtual bool CanWriteType (Type type);
protected virtual bool CanWriteType (Type? type);
abstract member CanWriteType : Type -> bool
override this.CanWriteType : Type -> bool
Protected Overridable Function CanWriteType (type As Type) As Boolean
参数
- type
- Type
对象类型。
返回
true
如果可以写入类型,则为 ;否则为 false
。