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 參數特別用來表示以下情況:
無論物業是內建還是客製化。
是否應該以金鑰持續保留該屬性。
這些選項必須與該房產設定的價值相符,否則該房產將無法被找到。
即使屬性設為 或 false 0,此方法仍能正確運作。