Export (0) Print
Expand All

DSACryptoServiceProvider.CspKeyContainerInfo Property

Gets a CspKeyContainerInfo object that describes additional information about a cryptographic key pair.

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

[ComVisibleAttribute(false)]
public CspKeyContainerInfo CspKeyContainerInfo { get; }

Property Value

Type: System.Security.Cryptography.CspKeyContainerInfo
A CspKeyContainerInfo object that describes additional information about a cryptographic key pair.

Implements

ICspAsymmetricAlgorithm.CspKeyContainerInfo

Use the CspKeyContainerInfo property to retrieve additional information about a cryptographic key pair. The returned CspKeyContainerInfo object describes whether the key is exportable, and specifies the key container name, information about the provider, and other information.

In cases where a random key is generated, a key container will not be created until you call a method that uses the key. Some properties of the CspKeyContainerInfo object returned by the CspKeyContainerInfo property will throw a CryptographicException if a key container has not been created. To make sure that a key container has been created, call a method such as SignData, SignHash, VerifyData, VerifyHash, and so on, before you call the CspKeyContainerInfo property.

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

Show:
© 2014 Microsoft