CngKey.Exists Metodo

Definizione

Verifica la presenza di una chiave denominata in un provider di archiviazione chiavi (KSP) specifico.

Overload

Exists(String)

Verifica se una chiave denominata esiste o meno nel provider di archiviazione chiavi (KSP) predefinito.

Exists(String, CngProvider)

Verifica se una chiave denominata esiste o meno nel provider di archiviazione chiavi (KSP) specificato.

Exists(String, CngProvider, CngKeyOpenOptions)

Verifica se una chiave denominata esiste o meno nel provider di archiviazione chiavi (KSP) specificato, in base alle opzioni specificate.

Exists(String)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Verifica se una chiave denominata esiste o meno nel provider di archiviazione chiavi (KSP) predefinito.

public:
 static bool Exists(System::String ^ keyName);
public static bool Exists (string keyName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool Exists (string keyName);
static member Exists : string -> bool
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Exists : string -> bool
Public Shared Function Exists (keyName As String) As Boolean

Parametri

keyName
String

Nome della chiave.

Restituisce

true se la chiave denominata esiste nel KSP predefinito; in caso contrario, false.

Attributi

Eccezioni

keyName è null.

Cryptography Next Generation non è supportato in questo sistema.

Tutti gli altri errori.

Commenti

Il KSP predefinito è MicrosoftSoftwareKeyStorageProvider.

Si applica a

Exists(String, CngProvider)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Verifica se una chiave denominata esiste o meno nel provider di archiviazione chiavi (KSP) specificato.

public:
 static bool Exists(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider);
public static bool Exists (string keyName, System.Security.Cryptography.CngProvider provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool Exists (string keyName, System.Security.Cryptography.CngProvider provider);
static member Exists : string * System.Security.Cryptography.CngProvider -> bool
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Exists : string * System.Security.Cryptography.CngProvider -> bool
Public Shared Function Exists (keyName As String, provider As CngProvider) As Boolean

Parametri

keyName
String

Nome della chiave.

provider
CngProvider

KSP nel quale verificare la presenza della chiave.

Restituisce

true se la chiave denominata esiste nel provider specificato; in caso contrario, false.

Attributi

Eccezioni

keyName o provider è null.

Cryptography Next Generation non è supportato in questo sistema.

Tutti gli altri errori.

Commenti

Usare questo overload per verificare l'esistenza di una chiave in un KSP diverso dal KSP predefinito, ovvero MicrosoftSoftwareKeyStorageProvider.

Si applica a

Exists(String, CngProvider, CngKeyOpenOptions)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Verifica se una chiave denominata esiste o meno nel provider di archiviazione chiavi (KSP) specificato, in base alle opzioni specificate.

public:
 static bool Exists(System::String ^ keyName, System::Security::Cryptography::CngProvider ^ provider, System::Security::Cryptography::CngKeyOpenOptions options);
public static bool Exists (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions options);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool Exists (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions options);
[System.Security.SecurityCritical]
public static bool Exists (string keyName, System.Security.Cryptography.CngProvider provider, System.Security.Cryptography.CngKeyOpenOptions options);
static member Exists : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> bool
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Exists : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> bool
[<System.Security.SecurityCritical>]
static member Exists : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> bool
Public Shared Function Exists (keyName As String, provider As CngProvider, options As CngKeyOpenOptions) As Boolean

Parametri

keyName
String

Nome della chiave.

provider
CngProvider

KSP nel quale cercare la chiave.

options
CngKeyOpenOptions

Combinazione bit per bit dei valori di enumerazione che specificano le opzioni per l'apertura di una chiave.

Restituisce

true se la chiave denominata esiste nel provider specificato; in caso contrario, false.

Attributi

Eccezioni

keyName o provider è null.

Cryptography Next Generation non è supportato in questo sistema.

Tutti gli altri errori.

Commenti

Usare questo overload per verificare l'esistenza di una chiave in un KSP diverso dall'impostazione predefinita MicrosoftSoftwareKeyStorageProvidere per specificare le opzioni di apertura della chiave.

Si applica a