語言

HostProtectionAttribute.MayLeakOnAbort 屬性

定義

會取得或設定一個值,表示如果操作終止,資源是否可能洩漏記憶體。

public:
 property bool MayLeakOnAbort { bool get(); void set(bool value); };
public bool MayLeakOnAbort { get; set; }
member this.MayLeakOnAbort : bool with get, set
Public Property MayLeakOnAbort As Boolean

屬性值

true資源在終止時可能會洩漏記憶體;否則,。 false

備註

若程式碼未被安全柄或其他確保資源釋放的保護措施保護,可能導致終止時資源洩漏。

適用於

另請參閱