Rediger

Del via


AspNetHostingPermission Constructors

Definition

Initializes a new instance of the AspNetHostingPermission class.

Overloads

AspNetHostingPermission(PermissionState)

Initializes a new instance of the AspNetHostingPermission class with the specified PermissionState enumeration value.

AspNetHostingPermission(AspNetHostingPermissionLevel)

Initializes a new instance of the AspNetHostingPermission class with the specified permission level.

AspNetHostingPermission(PermissionState)

Source:
AspNetHostingPermission.cs
Source:
AspNetHostingPermission.cs
Source:
AspNetHostingPermission.cs
Source:
AspNetHostingPermission.cs

Initializes a new instance of the AspNetHostingPermission class with the specified PermissionState enumeration value.

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

Parameters

state
PermissionState

A PermissionState enumeration value.

Exceptions

state is not set to one of the PermissionState enumeration values.

Applies to

AspNetHostingPermission(AspNetHostingPermissionLevel)

Source:
AspNetHostingPermission.cs
Source:
AspNetHostingPermission.cs
Source:
AspNetHostingPermission.cs
Source:
AspNetHostingPermission.cs

Initializes a new instance of the AspNetHostingPermission class with the specified permission level.

public:
 AspNetHostingPermission(System::Web::AspNetHostingPermissionLevel level);
public AspNetHostingPermission (System.Web.AspNetHostingPermissionLevel level);
new System.Web.AspNetHostingPermission : System.Web.AspNetHostingPermissionLevel -> System.Web.AspNetHostingPermission
Public Sub New (level As AspNetHostingPermissionLevel)

Parameters

See also

Applies to