System.Security.Cryptography.CspKeyContainerInfo Class

Provides additional information about a cryptographic key pair. This class cannot be inherited.

See Also: CspKeyContainerInfo Members


public sealed class CspKeyContainerInfo


Use this class to obtain additional information about a key pair, such as the key container name or the key number.

In cases where a random key is generated by the System.Security.Cryptography.RSACryptoServiceProvider or the System.Security.Cryptography.DSACryptoServiceProvider, a key container will not be created until you call a method that uses the key. Some properties of the System.Security.Cryptography.CspKeyContainerInfo class will throw a System.Security.Cryptography.CryptographicException if a key container has not been created.


Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,
Since: .NET 2.0