WebBrowserPermissionAttribute.Level 属性
定义
为 WebBrowserPermissionAttribute 获取或设置当前 Web 浏览器权限级别。Gets or sets the current Web browser permission level for the WebBrowserPermissionAttribute.
public:
property System::Security::Permissions::WebBrowserPermissionLevel Level { System::Security::Permissions::WebBrowserPermissionLevel get(); void set(System::Security::Permissions::WebBrowserPermissionLevel value); };
public System.Security.Permissions.WebBrowserPermissionLevel Level { get; set; }
member this.Level : System.Security.Permissions.WebBrowserPermissionLevel with get, set
Public Property Level As WebBrowserPermissionLevel
属性值
当前 Web 浏览器权限级别的状态。The state of the current Web browser permission level.
示例
下面的示例演示如何要求调用代码有权创建在安全级别运行的 Web 浏览器控件。The following example shows how to demand that the calling code has permission to create a Web browser control that runs at a safe level.
[WebBrowserPermissionAttribute(SecurityAction.Demand, Level = WebBrowserPermissionLevel.Safe)]
<WebBrowserPermissionAttribute(SecurityAction.Demand, Level:=WebBrowserPermissionLevel.Safe)>
Public Sub Method02()
End Sub
注解
默认值是 None。The default value is None.
XAML 属性用法XAML Attribute Usage
此类的成员通常不在 XAML 中使用,或不能在 XAML 中使用。Members of this class are either not typically used in XAML, or cannot be used in XAML.