Form.IsRestrictedWindow 屬性

定義

取得值,指出表單是否可以無限制地使用所有的視窗和使用者輸入事件。

public:
 property bool IsRestrictedWindow { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsRestrictedWindow { get; }
[<System.ComponentModel.Browsable(false)>]
member this.IsRestrictedWindow : bool
Public ReadOnly Property IsRestrictedWindow As Boolean

屬性值

Boolean

如果表單有限制則為 true,否則為 false。 預設為 true

屬性

備註

屬性 IsRestrictedWindow 會判斷是否 AllWindows 授與許可權。 這個屬性是在表單建構函式的執行時間設定,而且會在表單的存留期內快取。 Windows Forms在部分信任中執行的應用程式無法規避這項檢查,因為 Common Language Runtime 可確保父建構函式一律在部分信任中呼叫。

適用於