Condividi tramite


CngKeyCreationParameters.Parameters Proprietà

Definizione

Consente di creare un CngKey oggetto con proprietà aggiuntive impostate prima della finalizzazione della chiave.

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

Valore della proprietà

Oggetto raccolta che contiene eventuali parametri aggiuntivi che è necessario impostare su un CngKey oggetto durante la creazione della chiave.

Commenti

La CngKeyCreationParameters classe consente di creare un nuovo CngKey oggetto e di inizializzarlo con le proprietà comuni. Se è necessario impostare proprietà aggiuntive sulla chiave durante la creazione, seguire questa procedura:

  1. Creare un nuovo CngProperty oggetto per ogni proprietà aggiuntiva che è necessario impostare.

  2. Chiamare la Parameters proprietà per ottenere un oggetto vuoto CngPropertyCollection .

  3. Aggiungere gli CngProperty oggetti all'oggetto CngPropertyCollection .

  4. Chiamare l'overload del Create(CngAlgorithm, String, CngKeyCreationParameters) metodo e passarvi l'oggetto inizializzato CngKeyCreationParameters .

Si applica a