OutputFormatter.CanWriteType(Type) 方法

定义

返回一个值,该值指示此序列化程序是否可以写入给定类型。

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

适用于