AspNetHostingPermission Constructor (PermissionState)
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Initializes a new instance of the AspNetHostingPermission class with the specified PermissionState enumeration value.
Assembly: System (in System.dll)
Parameters
- state
-
Type:
System.Security.Permissions.PermissionState
A PermissionState enumeration value.
Exception | Condition |
---|---|
ArgumentException | state is not set to one of the PermissionState enumeration values. |
.NET Framework
Available since 1.1
Available since 1.1
Show: