Share via


AesCng Costruttori

Definizione

Inizializza una nuova istanza della classe AesCng.

Overload

AesCng()

Inizializza una nuova istanza della classe AesCng con una chiave temporanea.

AesCng(String)

Inizializza una nuova istanza della classe AesCng con il nome di chiave specificato, che rappresenta una chiave AES persistente.

AesCng(String, CngProvider)

Inizializza una nuova istanza della classe AesCng con il nome di chiave specificato, che rappresenta una chiave AES persistente, e il provider archiviazione chiavi (KSP) specificato.

AesCng(String, CngProvider, CngKeyOpenOptions)

Inizializza una nuova istanza della classe con il nome della AesCng chiave specificata, che rappresenta una chiave AES persistente esistente, il provider di archiviazione delle chiavi specificato (KSP) e le opzioni di apertura della chiave.

AesCng()

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Inizializza una nuova istanza della classe AesCng con una chiave temporanea.

public:
 AesCng();
public AesCng ();
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng ();
Public Sub New ()
Attributi

Si applica a

AesCng(String)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Inizializza una nuova istanza della classe AesCng con il nome di chiave specificato, che rappresenta una chiave AES persistente.

public:
 AesCng(System::String ^ keyName);
public AesCng (string keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng (string keyName);
new System.Security.Cryptography.AesCng : string -> System.Security.Cryptography.AesCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String)

Parametri

keyName
String

Nome della chiave.

Attributi

Eccezioni

keyName è null.

Cryptography Next Generation non è supportato in questo sistema.

Tutti gli altri errori.

Commenti

Questo costruttore usa un valore predefinito di e MicrosoftSoftwareKeyStorageProvider come provider di None archiviazione chiavi predefinito CngKeyOpenOptions (KSP) per aprire la chiave.

Vedi anche

Si applica a

AesCng(String, CngProvider)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Inizializza una nuova istanza della classe AesCng con il nome di chiave specificato, che rappresenta una chiave AES persistente, e il provider archiviazione chiavi (KSP) specificato.

public:
 AesCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider);
public AesCng (string keyName, System.Security.Cryptography.CngProvider provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng (string keyName, System.Security.Cryptography.CngProvider provider);
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.AesCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String, provider As CngProvider)

Parametri

keyName
String

Nome della chiave.

provider
CngProvider

Provider archiviazione chiavi che contiene la chiave.

Attributi

Eccezioni

keyName è null.

-oppure-

provider è null.

Cryptography Next Generation non è supportato in questo sistema.

Tutti gli altri errori.

Commenti

Viene usato un valore predefinito CngKeyOpenOptions di None per aprire la chiave.

Vedi anche

Si applica a

AesCng(String, CngProvider, CngKeyOpenOptions)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Inizializza una nuova istanza della classe con il nome della AesCng chiave specificata, che rappresenta una chiave AES persistente esistente, il provider di archiviazione delle chiavi specificato (KSP) e le opzioni di apertura della chiave.

public:
 AesCng(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider, System::Security::Cryptography::CngKeyOpenOptions openOptions);
public AesCng (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public AesCng (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions openOptions);
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.AesCng
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.AesCng : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> System.Security.Cryptography.AesCng
Public Sub New (keyName As String, provider As CngProvider, openOptions As CngKeyOpenOptions)

Parametri

keyName
String

Nome della chiave.

provider
CngProvider

Provider archiviazione chiavi che contiene la chiave.

openOptions
CngKeyOpenOptions

Combinazione bit per bit dei valori di enumerazione che specificano le opzioni di apertura della chiave, ad esempio se la chiave viene aperta dal computer o dall'archivio utente e se eliminare il prompt dell'interfaccia utente.

Attributi

Eccezioni

keyName è null.

-oppure-

provider è null.

Cryptography Next Generation non è supportato in questo sistema.

Tutti gli altri errori.

Vedi anche

Si applica a