CngKey.Create Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Crea un CngKey oggetto che rappresenta una nuova chiave.
Overload
| Nome | Descrizione |
|---|---|
| Create(CngAlgorithm) |
Crea un CngKey oggetto che può essere utilizzato con l'algoritmo specificato. |
| Create(CngAlgorithm, String) |
Crea un oggetto denominato CngKey che fornisce l'algoritmo specificato. |
| Create(CngAlgorithm, String, CngKeyCreationParameters) |
Crea un oggetto denominato CngKey che fornisce l'algoritmo specificato, utilizzando i parametri di creazione della chiave forniti. |
Create(CngAlgorithm)
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
Crea un CngKey oggetto che può essere utilizzato con l'algoritmo specificato.
public:
static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
static member Create : System.Security.Cryptography.CngAlgorithm -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm) As CngKey
Parametri
- algorithm
- CngAlgorithm
Algoritmo con cui verrà utilizzata la chiave.
Valori restituiti
Chiave temporanea.
- Attributi
Eccezioni
algorithm è null.
La crittografia next generation (CNG) non è supportata in questo sistema.
Tutti gli altri errori.
Commenti
Questo overload crea una chiave senza un nome, il che significa che la chiave è temporanea, ovvero non verrà salvata in modo permanente. Crea anche un oggetto predefinito CngKeyCreationParameters che specifica un parametro predefinito CngProvider e altri parametri avanzati per la chiave.
Si applica a
Create(CngAlgorithm, String)
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
Crea un oggetto denominato CngKey che fornisce l'algoritmo specificato.
public:
static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm, System::String ^ keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string? keyName);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string? keyName);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string keyName);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm * string -> System.Security.Cryptography.CngKey
static member Create : System.Security.Cryptography.CngAlgorithm * string -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm, keyName As String) As CngKey
Parametri
- algorithm
- CngAlgorithm
Algoritmo con cui verrà utilizzata la chiave.
- keyName
- String
Nome della chiave. Se non viene specificato un nome, la chiave non verrà salvata in modo permanente.
Valori restituiti
Chiave persistente o temporanea che fornisce l'algoritmo specificato.
- Attributi
Eccezioni
algorithm è null.
La crittografia next generation (CNG) non è supportata in questo sistema.
Tutti gli altri errori.
Commenti
Se keyName viene specificato, questo overload crea una chiave persistente. Se keyName non viene specificato, la chiave sarà temporanea. Questo overload crea anche un oggetto predefinito CngKeyCreationParameters che specifica un parametro predefinito CngProvider e altri parametri avanzati per la chiave.
Si applica a
Create(CngAlgorithm, String, CngKeyCreationParameters)
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
- Origine:
- Cng.NotSupported.cs
Crea un oggetto denominato CngKey che fornisce l'algoritmo specificato, utilizzando i parametri di creazione della chiave forniti.
public:
static System::Security::Cryptography::CngKey ^ Create(System::Security::Cryptography::CngAlgorithm ^ algorithm, System::String ^ keyName, System::Security::Cryptography::CngKeyCreationParameters ^ creationParameters);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string? keyName, System.Security.Cryptography.CngKeyCreationParameters? creationParameters);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string? keyName, System.Security.Cryptography.CngKeyCreationParameters? creationParameters);
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string keyName, System.Security.Cryptography.CngKeyCreationParameters creationParameters);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Create(System.Security.Cryptography.CngAlgorithm algorithm, string keyName, System.Security.Cryptography.CngKeyCreationParameters creationParameters);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
[<System.Security.SecurityCritical>]
static member Create : System.Security.Cryptography.CngAlgorithm * string * System.Security.Cryptography.CngKeyCreationParameters -> System.Security.Cryptography.CngKey
Public Shared Function Create (algorithm As CngAlgorithm, keyName As String, creationParameters As CngKeyCreationParameters) As CngKey
Parametri
- algorithm
- CngAlgorithm
Algoritmo con cui verrà utilizzata la chiave.
- keyName
- String
Nome della chiave. Se non viene specificato un nome, la chiave non verrà salvata in modo permanente.
- creationParameters
- CngKeyCreationParameters
Oggetto che specifica parametri avanzati per il metodo, incluso .CngProvider
Valori restituiti
Chiave persistente o temporanea che fornisce l'algoritmo specificato.
- Attributi
Eccezioni
algorithm è null.
La crittografia next generation (CNG) non è supportata in questo sistema.
Tutti gli altri errori.
Commenti
Se keyName viene specificato, questo overload crea una chiave persistente. Se keyName non viene specificato, la chiave sarà temporanea.