Form.IsRestrictedWindow 属性

定义

获取一个值,该值指示窗体是否可以不受限制地使用所有窗口和用户输入事件。

C#
[System.ComponentModel.Browsable(false)]
public bool IsRestrictedWindow { get; }

属性值

Boolean

如果窗体有限制,则为 true;否则为 false。 默认值为 true

属性

注解

IsRestrictedWindow 属性确定是否 AllWindows 授予权限。 此属性在窗体的构造函数的运行时设置,并在窗体的生存期内缓存。 Windows 窗体在部分信任中运行的应用程序无法绕过此检查,因为公共语言运行时可确保始终在部分信任中调用父构造函数。

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7