DSACryptoServiceProvider.CspKeyContainerInfo 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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 屬性之前,先呼叫 、 SignHash 、 VerifyData 、 VerifyHash 等方法 SignData 。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應