CodeAccessSecurityAttribute Constructor
Collapse the table of content
Expand the table of content

CodeAccessSecurityAttribute Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of CodeAccessSecurityAttribute with the specified SecurityAction.

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

'Declaration
Public Sub New ( _
	action As SecurityAction _
)

Parameters

action
Type: System.Security.Permissions.SecurityAction
One of the enumeration values.

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

This class supports the .NET Framework for Windows Phone library code and is not intended to be used by Windows Phone application code. The class has been marked as obsolete so that it will display a compilation warning. You can use this class in aWindows Phone app, but it will have no effect.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft