CngKey.Exists Metoda

Definice

Kontroluje pojmenovaný klíč v konkrétním poskytovateli úložiště klíčů (KSP).

Přetížení

Name Description
Exists(String)

Zkontroluje, jestli pojmenovaný klíč existuje ve výchozím poskytovateli úložiště klíčů (KSP).

Exists(String, CngProvider)

Zkontroluje, jestli v zadaném poskytovateli úložiště klíčů (KSP) existuje pojmenovaný klíč.

Exists(String, CngProvider, CngKeyOpenOptions)

Zkontroluje, jestli v zadaném poskytovateli úložiště klíčů (KSP) existuje pojmenovaný klíč podle zadaných možností.

Exists(String)

Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs

Zkontroluje, jestli pojmenovaný klíč existuje ve výchozím poskytovateli úložiště klíčů (KSP).

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

Parametry

keyName
String

Název klíče.

Návraty

truepokud pojmenovaný klíč existuje ve výchozím KSP; v opačném případě . false

Atributy

Výjimky

keyName je null.

Kryptografie next Generation (CNG) není v tomto systému podporována.

Všechny ostatní chyby.

Poznámky

Výchozí KSP je MicrosoftSoftwareKeyStorageProvider.

Platí pro

Exists(String, CngProvider)

Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs

Zkontroluje, jestli v zadaném poskytovateli úložiště klíčů (KSP) existuje pojmenovaný klíč.

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

Parametry

keyName
String

Název klíče.

provider
CngProvider

KSP ke kontrole klíče.

Návraty

truepokud pojmenovaný klíč existuje v zadaném poskytovateli; v opačném případě . false

Atributy

Výjimky

keyName nebo provider je null.

Kryptografie next Generation (CNG) není v tomto systému podporována.

Všechny ostatní chyby.

Poznámky

Toto přetížení použijte ke kontrole existence klíče v jiném KSP než výchozí KSP, což je MicrosoftSoftwareKeyStorageProvider.

Platí pro

Exists(String, CngProvider, CngKeyOpenOptions)

Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs
Zdroj:
Cng.NotSupported.cs

Zkontroluje, jestli v zadaném poskytovateli úložiště klíčů (KSP) existuje pojmenovaný klíč podle zadaných možností.

public:
 static bool Exists(System::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);
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);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Exists : string * System.Security.Cryptography.CngProvider * System.Security.Cryptography.CngKeyOpenOptions -> bool
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

Parametry

keyName
String

Název klíče.

provider
CngProvider

KSP k vyhledání klíče.

options
CngKeyOpenOptions

Bitová kombinace hodnot výčtu, které určují možnosti pro otevření klíče.

Návraty

truepokud pojmenovaný klíč existuje v zadaném poskytovateli; v opačném případě . false

Atributy

Výjimky

keyName nebo provider je null.

Kryptografie next Generation (CNG) není v tomto systému podporována.

Všechny ostatní chyby.

Poznámky

Toto přetížení použijte ke kontrole existence klíče v jiném KSP než výchozí MicrosoftSoftwareKeyStorageProvidera určení možností otevření klíče.

Platí pro