CngKey.HasProperty(String, CngPropertyOptions) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
키에 지정된 속성이 있는지 확인합니다.
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
명명된 속성에 대한 옵션을 지정하는 열거형 값의 비트 조합입니다.
반환
지정된 속성이 있으면 true
이고, 그렇지 않으면 false
입니다.
- 특성
예외
name
이(가) null
인 경우
설명
매개 options
변수는 다음을 나타내는 데 특히 사용됩니다.
속성이 기본 제공인지 사용자 지정인지 여부입니다.
속성을 키와 함께 유지할지 여부입니다.
이러한 옵션은 속성이 설정된 값과 일치해야 합니다. 그렇지 않으면 속성을 찾을 수 없습니다.
이 메서드는 속성이 0으로 설정되어 있더라도 올바르게 작동합니다 false
.