Share via


CngKeyCreationParameters.Parameters 屬性

定義

啟用 CngKey 物件,該物件會以金鑰做最終處理之前設定的額外屬性建立。

public:
 property System::Security::Cryptography::CngPropertyCollection ^ Parameters { System::Security::Cryptography::CngPropertyCollection ^ get(); };
public System.Security.Cryptography.CngPropertyCollection Parameters { get; }
member this.Parameters : System.Security.Cryptography.CngPropertyCollection
Public ReadOnly Property Parameters As CngPropertyCollection

屬性值

集合物件,包含建立金鑰時,必須在 CngKey 物件上設定的任何額外參數。

備註

類別 CngKeyCreationParameters 可讓您建立新的 CngKey 物件,並使用通用屬性加以初始化。 如果您必須在金鑰建立期間設定其他屬性,請遵循下列步驟:

  1. Create 您必須設定之每個額外屬性的新 CngProperty 物件。

  2. Parameters呼叫 屬性以取得空CngPropertyCollection的物件。

  3. CngProperty 物件新增至 CngPropertyCollection 物件。

  4. Create(CngAlgorithm, String, CngKeyCreationParameters)呼叫 方法多載,並將初始化CngKeyCreationParameters的對象傳遞給它。

適用於