DSACryptoServiceProvider.CspKeyContainerInfo 属性

定义

获取描述有关加密密钥对的附加信息的 CspKeyContainerInfo 对象。

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

属性值

描述有关加密密钥对的附加信息的 CspKeyContainerInfo 对象。

实现

属性

注解

CspKeyContainerInfo使用 属性检索有关加密密钥对的其他信息。 返回 CspKeyContainerInfo 的对象描述密钥是否可导出,并指定密钥容器名称、有关提供程序的信息和其他信息。

在生成随机密钥的情况下,在调用使用该密钥的方法之前,不会创建密钥容器。 如果尚未创建密钥容器, CspKeyContainerInfoCspKeyContainerInfo 属性返回的对象的某些属性将引发 CryptographicException 。 若要确保已创建密钥容器,请在调用 CspKeyContainerInfo 属性之前调用 、SignHashSignDataVerifyDataVerifyHash、 等方法。

适用于

另请参阅