AspNetHostingPermission Constructor (PermissionState)

 

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

Namespace:   System.Web
Assembly:  System (in System.dll)

new : 
        state:PermissionState -> AspNetHostingPermission

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
Return to top
Show: