CngKey.HasProperty(String, CngPropertyOptions) 메서드

정의

키에 지정된 속성이 있는지 확인합니다.

public:
 bool HasProperty(System::String ^ name, System::Security::Cryptography::CngPropertyOptions options);
public bool HasProperty (string name, System.Security.Cryptography.CngPropertyOptions options);
[System.Security.SecurityCritical]
public bool HasProperty (string name, System.Security.Cryptography.CngPropertyOptions options);
member this.HasProperty : string * System.Security.Cryptography.CngPropertyOptions -> bool
[<System.Security.SecurityCritical>]
member this.HasProperty : string * System.Security.Cryptography.CngPropertyOptions -> bool
Public Function HasProperty (name As String, options As CngPropertyOptions) As Boolean

매개 변수

name
String

확인할 속성 이름입니다.

options
CngPropertyOptions

명명된 속성에 대한 옵션을 지정하는 열거형 값의 비트 조합입니다.

반환

Boolean

지정된 속성이 있으면 true이고, 그렇지 않으면 false입니다.

특성

예외

name이(가) null인 경우

설명

매개 options 변수는 다음을 나타내는 데 특히 사용됩니다.

  • 속성이 기본 제공인지 사용자 지정인지 여부입니다.

  • 속성을 키와 함께 유지할지 여부입니다.

이러한 옵션은 속성이 설정된 값과 일치해야 합니다. 그렇지 않으면 속성을 찾을 수 없습니다.

이 메서드는 속성이 0으로 설정되어 있더라도 올바르게 작동합니다 false .

적용 대상