Szerkesztés

Megosztás a következőn keresztül:


WebBrowserPermission Constructors

Definition

Initializes a new instance of the WebBrowserPermission class.

Overloads

WebBrowserPermission()

Initializes a new instance of the WebBrowserPermission class.

WebBrowserPermission(PermissionState)

Initializes a new instance of the WebBrowserPermission class by specifying a permission state.

WebBrowserPermission(WebBrowserPermissionLevel)

Initializes a new instance of the WebBrowserPermission class by specifying the Web browser permission level.

WebBrowserPermission()

Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs

Initializes a new instance of the WebBrowserPermission class.

public:
 WebBrowserPermission();
public WebBrowserPermission ();
Public Sub New ()

Remarks

By default, the value of the Level property is set to Safe.

Applies to

WebBrowserPermission(PermissionState)

Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs

Initializes a new instance of the WebBrowserPermission class by specifying a permission state.

public:
 WebBrowserPermission(System::Security::Permissions::PermissionState state);
public WebBrowserPermission (System.Security.Permissions.PermissionState state);
new System.Security.Permissions.WebBrowserPermission : System.Security.Permissions.PermissionState -> System.Security.Permissions.WebBrowserPermission
Public Sub New (state As PermissionState)

Parameters

state
PermissionState

An enumerated value of PermissionState.

Examples

The following code example shows how to create a WebBrowserPermission with a PermissionState value.

WebBrowserPermission webBrowserPermission = new WebBrowserPermission(PermissionState.Unrestricted);
Dim webBrowserPermission As New WebBrowserPermission(PermissionState.Unrestricted)

Remarks

If state is set to Unrestricted, the value of the Level property is set to Unrestricted. If state is set to None, the value of the Level property is set to None.

Applies to

WebBrowserPermission(WebBrowserPermissionLevel)

Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs
Source:
WebBrowserPermission.cs

Initializes a new instance of the WebBrowserPermission class by specifying the Web browser permission level.

public:
 WebBrowserPermission(System::Security::Permissions::WebBrowserPermissionLevel webBrowserPermissionLevel);
public WebBrowserPermission (System.Security.Permissions.WebBrowserPermissionLevel webBrowserPermissionLevel);
new System.Security.Permissions.WebBrowserPermission : System.Security.Permissions.WebBrowserPermissionLevel -> System.Security.Permissions.WebBrowserPermission
Public Sub New (webBrowserPermissionLevel As WebBrowserPermissionLevel)

Parameters

webBrowserPermissionLevel
WebBrowserPermissionLevel

An enumerated value of WebBrowserPermissionLevel.

Examples

The following code example shows how to create a WebBrowserPermission with a WebBrowserPermissionLevel value.

WebBrowserPermission webBrowserPermission = new WebBrowserPermission(WebBrowserPermissionLevel.None);
Dim webBrowserPermission As New WebBrowserPermission(WebBrowserPermissionLevel.None)

Applies to