AspNetHostingPermission Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy AspNetHostingPermission.Initializes a new instance of the AspNetHostingPermission class.

Przeciążenia

AspNetHostingPermission(PermissionState)

Inicjuje nowe wystąpienie klasy AspNetHostingPermission z określoną wartością wyliczenia PermissionState.Initializes a new instance of the AspNetHostingPermission class with the specified PermissionState enumeration value.

AspNetHostingPermission(AspNetHostingPermissionLevel)

Inicjuje nowe wystąpienie klasy AspNetHostingPermission z określonym poziomem uprawnień.Initializes a new instance of the AspNetHostingPermission class with the specified permission level.

AspNetHostingPermission(PermissionState)

Inicjuje nowe wystąpienie klasy AspNetHostingPermission z określoną wartością wyliczenia PermissionState.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)

Parametry

state
PermissionState

Wartość wyliczenia PermissionState.A PermissionState enumeration value.

Wyjątki

state nie jest ustawiona na jedną z PermissionState wartości wyliczenia.state is not set to one of the PermissionState enumeration values.

AspNetHostingPermission(AspNetHostingPermissionLevel)

Inicjuje nowe wystąpienie klasy AspNetHostingPermission z określonym poziomem uprawnień.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)

Parametry

Zobacz też

Dotyczy