Export (0) Print
Expand All

KeyContainerPermissionAccessEntry Constructor (CspParameters, KeyContainerPermissionFlags)

Initializes a new instance of the KeyContainerPermissionAccessEntry class, using the specified cryptographic service provider (CSP) parameters and access permissions.

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

public KeyContainerPermissionAccessEntry(
	CspParameters parameters,
	KeyContainerPermissionFlags flags


Type: System.Security.Cryptography.CspParameters

A CspParameters object that contains the cryptographic service provider (CSP) parameters.

Type: System.Security.Permissions.KeyContainerPermissionFlags

A bitwise combination of the KeyContainerPermissionFlags values.


The resulting entry would have unrestricted access.

This constructor allows access rights to be assigned for specific key containers identified in a CspParameters object.

The following code example shows the use of the KeyContainerPermissionAccessEntry(CspParameters, KeyContainerPermissionFlags) constructor.

private static KeyContainerPermissionAccessEntry 
    keyContainerPermAccEntry2 = new KeyContainerPermissionAccessEntry(
    cspParams, KeyContainerPermissionFlags.Open);

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft