CodeAccessSecurityAttribute Constructor (SecurityAction)

 
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 CodeAccessSecurityAttribute with the specified SecurityAction.

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

protected CodeAccessSecurityAttribute(
	SecurityAction action
)

Parameters

action
Type: System.Security.Permissions.SecurityAction

One of the SecurityAction values.

You cannot create an instance of this class. You must inherit from this class to make use of its functionality.

Notes to Inheritors:

Derived classes must have only one constructor that takes a SecurityAction as its only parameter.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: