Share via


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

名前付きプロパティのオプションを示す列挙値のビットごとの組み合わせ。

戻り値

指定したプロパティが見つかった場合は true。それ以外の場合は false

属性

例外

namenull です。

注釈

パラメーターは options 、以下を示すために特に使用されます。

  • プロパティが組み込みであるか、カスタムであるか。

  • プロパティをキーで永続化する必要があるかどうか。

これらのオプションは、プロパティが設定された値と一致する必要があります。または、 プロパティが見つかりません。

プロパティが または 0 に false 設定されている場合でも、このメソッドは正しく動作します。

適用対象