WebBrowserPermissionAttribute.Level Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the current Web browser permission level for the WebBrowserPermissionAttribute.

Namespace:   System.Security.Permissions
Assembly:  WindowsBase (in WindowsBase.dll)

public WebBrowserPermissionLevel Level { get; set; }

Property Value

Type: System.Security.Permissions.WebBrowserPermissionLevel

The state of the current Web browser permission level.

The default value is None.

Members of this class are either not typically used in XAML, or cannot be used in XAML.

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)]

.NET Framework
Available since 3.0
Return to top