CodeAccessSecurityAttribute Constructor

CodeAccessSecurityAttribute Constructor (SecurityAction)


Initializes a new instance of CodeAccessSecurityAttribute with the specified SecurityAction.

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

protected CodeAccessSecurityAttribute(
	SecurityAction 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
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft