共用方式為


XmlSerializerInputFormatter.CanReadType(Type) 方法

定義

判斷這 InputFormatter 是否可以還原序列化指定 type 的物件。

protected:
 override bool CanReadType(Type ^ type);
protected override bool CanReadType (Type type);
override this.CanReadType : Type -> bool
Protected Overrides Function CanReadType (type As Type) As Boolean

參數

type
Type

Type要讀取之 物件的 。

傳回

truetype如果 可以讀取 ,則為 ,否則 false 為 。

適用於