AspNetHostingPermission Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
An AspNetHostingPermissionLevel enumeration value.
See also
Applies to
.NET