Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

new : 
        action:SecurityAction -> HostProtectionAttribute

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
Show:
© 2015 Microsoft