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 選項。 否則,將無法找到屬性。

適用於