HostProtectionAttribute Constructor (SecurityAction)

Initializes a new instance of the HostProtectionAttribute class with the specified SecurityAction value.

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 SecurityAction values.

ExceptionCondition
ArgumentException

action is not LinkDemand.

This constructor should not be used. It is intended for infrastructure use.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft