CngKey.Exists 메서드

정의

특정 KSP(키 스토리지 공급자)에서 명명된 키를 확인합니다.

오버로드

Exists(String)

명명된 키가 기본 KSP(키 스토리지 공급자)에 있는지 확인합니다.

Exists(String, CngProvider)

명명된 키가 지정된 KSP(키 스토리지 공급자)에 있는지 확인합니다.

Exists(String, CngProvider, CngKeyOpenOptions)

지정된 옵션에 따라 명명된 키가 지정된 KSP(키 스토리지 공급자)에 있는지 확인합니다.

Exists(String)

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

명명된 키가 기본 KSP(키 스토리지 공급자)에 있는지 확인합니다.

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

매개 변수

keyName
String

키 이름입니다.

반환

명명된 키가 기본 KSP에 있으면 true이고, 그렇지 않으면 false입니다.

특성

예외

keyName이(가) null인 경우

CNG(Cryptography Next Generation)은 이 시스템에서 지원되지 않습니다.

다른 모든 오류입니다.

설명

기본 KSP는 입니다 MicrosoftSoftwareKeyStorageProvider.

적용 대상

Exists(String, CngProvider)

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

명명된 키가 지정된 KSP(키 스토리지 공급자)에 있는지 확인합니다.

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

매개 변수

keyName
String

키 이름입니다.

provider
CngProvider

키를 확인할 KSP입니다.

반환

명명된 키가 지정된 공급자에 있으면 true이고, 그렇지 않으면 false입니다.

특성

예외

keyName 또는 providernull인 경우

CNG(Cryptography Next Generation)은 이 시스템에서 지원되지 않습니다.

다른 모든 오류입니다.

설명

이 오버로드를 사용하여 기본 KSPMicrosoftSoftwareKeyStorageProvider()가 아닌 KSP에 키가 있는지 검사.

적용 대상

Exists(String, CngProvider, CngKeyOpenOptions)

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

지정된 옵션에 따라 명명된 키가 지정된 KSP(키 스토리지 공급자)에 있는지 확인합니다.

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

매개 변수

keyName
String

키 이름입니다.

provider
CngProvider

키를 검색할 KSP입니다.

options
CngKeyOpenOptions

키를 여는 옵션을 지정하는 열거형 값의 비트 조합입니다.

반환

명명된 키가 지정된 공급자에 있으면 true이고, 그렇지 않으면 false입니다.

특성

예외

keyName 또는 providernull인 경우

CNG(Cryptography Next Generation)은 이 시스템에서 지원되지 않습니다.

다른 모든 오류입니다.

설명

이 오버로드를 사용하여 기본 MicrosoftSoftwareKeyStorageProvider가 아닌 KSP에 키가 있는지 검사 키 열기 옵션을 지정할 수 있습니다.

적용 대상