AspNetHostingPermission Constructor (PermissionState)

 
System_CAPS_noteNote

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.

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

public AspNetHostingPermission(
	PermissionState state
)

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: