CngKey.SetProperty(CngProperty) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置密钥的已命名属性。
public:
void SetProperty(System::Security::Cryptography::CngProperty property);
C#
public void SetProperty(System.Security.Cryptography.CngProperty property);
C#
[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 选项完全匹配。 否则,将找不到 属性。
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 6, 7, 8, 9, 10 |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |