KeyContainerPermissionAccessEntry.KeySpec Property

 

Gets or sets the key specification.

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

public int KeySpec { get; set; }

Property Value

Type: System.Int32

One of the AT_ values defined in the Wincrypt.h header file.

Exception Condition
ArgumentException

The resulting entry would have unrestricted access.

Valid values for this property are AT_KEYEXCHANGE (1) and AT_SIGNATURE (2). The default value is –1, representing all possible values.

.NET Framework
Available since 2.0
Return to top
Show: