DSACryptoServiceProvider.CspKeyContainerInfo Propriété

Définition

Obtient un objet CspKeyContainerInfo qui comprend des informations supplémentaires concernant une paire de clés de chiffrement.

public:
 property System::Security::Cryptography::CspKeyContainerInfo ^ CspKeyContainerInfo { System::Security::Cryptography::CspKeyContainerInfo ^ get(); };
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public System.Security.Cryptography.CspKeyContainerInfo CspKeyContainerInfo { get; }
public System.Security.Cryptography.CspKeyContainerInfo CspKeyContainerInfo { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public System.Security.Cryptography.CspKeyContainerInfo CspKeyContainerInfo { get; }
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.CspKeyContainerInfo : System.Security.Cryptography.CspKeyContainerInfo
member this.CspKeyContainerInfo : System.Security.Cryptography.CspKeyContainerInfo
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.CspKeyContainerInfo : System.Security.Cryptography.CspKeyContainerInfo
Public ReadOnly Property CspKeyContainerInfo As CspKeyContainerInfo

Valeur de propriété

Objet CspKeyContainerInfo qui comprend des informations supplémentaires concernant une paire de clés de chiffrement.

Implémente

Attributs

Remarques

Utilisez la CspKeyContainerInfo propriété pour récupérer des informations supplémentaires sur une paire de clés de chiffrement. L’objet retourné CspKeyContainerInfo indique si la clé peut être exportée et spécifie le nom du conteneur de clé, des informations sur le fournisseur et d’autres informations.

Dans les cas où une clé aléatoire est générée, un conteneur de clé n’est pas créé tant que vous n’appelez pas une méthode qui utilise la clé. Certaines propriétés de l’objet CspKeyContainerInfo retourné par la CspKeyContainerInfo propriété lèvent un CryptographicException si aucun conteneur de clé n’a été créé. Pour vous assurer qu’un conteneur de clés a été créé, appelez une méthode telle que SignData, SignHash, VerifyData, VerifyHash, etc. avant d’appeler la CspKeyContainerInfo propriété .

S’applique à

Voir aussi