CngKeyCreationParameters.KeyCreationOptions 屬性

定義

取得或設定金鑰建立選項。

public:
 property System::Security::Cryptography::CngKeyCreationOptions KeyCreationOptions { System::Security::Cryptography::CngKeyCreationOptions get(); void set(System::Security::Cryptography::CngKeyCreationOptions value); };
public System.Security.Cryptography.CngKeyCreationOptions KeyCreationOptions { get; set; }
member this.KeyCreationOptions : System.Security.Cryptography.CngKeyCreationOptions with get, set
Public Property KeyCreationOptions As CngKeyCreationOptions

屬性值

指定建立金鑰之選項的物件。 預設值為 null,會指出已設定金鑰儲存提供者的預設金鑰建立選項。

備註

傳回 CngKeyCreationOptions 的物件會定義當您建立新 CngKey 物件時所使用的選項。 這些選項會決定金鑰是在使用者或電腦金鑰存放區中建立,以及新金鑰是否應該覆寫現有的金鑰。 根據預設,如果未 CngKeyCreationOptions.MachineKey 指定 ,則會在使用者存放區中建立金鑰。

適用於