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. 設定する必要がある追加のプロパティごとに、新しいCngPropertyオブジェクトをCreateします。

  2. プロパティを Parameters 呼び出して、空 CngPropertyCollection のオブジェクトを取得します。

  3. オブジェクトを CngProperty オブジェクトに CngPropertyCollection 追加します。

  4. メソッドオーバーロードを Create(CngAlgorithm, String, CngKeyCreationParameters) 呼び出し、初期化 CngKeyCreationParameters されたオブジェクトをそれに渡します。

適用対象