_Type.IsSerializable Property

Definition

為 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

Property Value

Boolean

如果 true 可序列化,則為 Type,否則為 falsetrue if the Type is serializable; otherwise, false.

Remarks

這個屬性是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。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.

Applies to