_Type.IsSerializable 属性
定义
为 COM 对象提供对 IsSerializable 属性的与版本无关的访问。Provides COM objects with version-independent access to the IsSerializable property.
public:
property bool IsSerializable { bool get(); };
public bool IsSerializable { get; }
member this.IsSerializable : bool
Public ReadOnly Property IsSerializable As Boolean
属性值
如果 Type 是可序列化的,则为 true;否则为 false。true if the Type is serializable; otherwise, false.
注解
此属性用于从非托管代码访问托管类,不应从托管代码调用。This property is for access to managed classes from unmanaged code, and should not be called from managed code.
Type.IsSerializable属性获取一个值,该值指示是否 Type 可序列化。The Type.IsSerializable property gets a value indicating whether the Type is serializable.