CngKey.SetProperty(CngProperty) 方法

定义

设置键上的命名属性。

public:
 void SetProperty(System::Security::Cryptography::CngProperty property);
public void SetProperty(System.Security.Cryptography.CngProperty property);
[System.Security.SecurityCritical]
public void SetProperty(System.Security.Cryptography.CngProperty property);
member this.SetProperty : System.Security.Cryptography.CngProperty -> unit
[<System.Security.SecurityCritical>]
member this.SetProperty : System.Security.Cryptography.CngProperty -> unit
Public Sub SetProperty (property As CngProperty)

参数

property
CngProperty

要设置的键属性。

属性

注解

使用此方法,可以使用对象向现有键 CngProperty 添加新的自定义属性。 在 CngProperty 对象上设置的选项必须与调用中的 GetProperty 选项完全匹配。 否则,将不会找到该属性。

适用于