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 回的物件描述金鑰是否可匯出,並指定金鑰容器名稱、提供者的相關資訊和其他資訊。

在產生隨機金鑰的情況下,除非您呼叫使用金鑰的方法,否則不會建立金鑰容器。 如果尚未建立索引鍵容器,屬性所 CspKeyContainerInfo 傳回之物件的某些屬性 CspKeyContainerInfo 將會擲 CryptographicException 回 。 若要確定已建立金鑰容器,請在呼叫 CspKeyContainerInfo 屬性之前,先呼叫 、 SignHashVerifyDataVerifyHash 等方法 SignData

適用於

另請參閱