This documentation is archived and is not being maintained.

WebBrowserPermissionAttribute Constructor

Initializes a new instance of the WebBrowserPermissionAttribute class with the specified SecurityAction.

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

public WebBrowserPermissionAttribute(
	SecurityAction action
)
You cannot use constructors in XAML.

Parameters

action
Type: System.Security.Permissions.SecurityAction

One of the SecurityAction values.

The default value of the Level property is None.

XAML Attribute Usage

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

The following example shows how to define a WebBrowserPermissionAttribute.

[WebBrowserPermissionAttribute(SecurityAction.Demand)]

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: