HostProtectionAttribute.MayLeakOnAbort 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得或設定一個值,表示如果操作終止,資源是否可能洩漏記憶體。
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
備註
若程式碼未被安全柄或其他確保資源釋放的保護措施保護,可能導致終止時資源洩漏。