<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0-preview.5.20278.1" />

System.Security.Cryptography.CngKeyCreationParameters

public sealed class CngKeyCreationParameters
Contains advanced properties for key creation.
public CngExportPolicies? ExportPolicy { get; set; }

Gets or sets the key export policy.

Gets or sets the key creation options.

public CngKeyUsages? KeyUsage { get; set; }

Gets or sets the cryptographic operations that apply to the current key.

Enables a CngKey object to be created with additional properties that are set before the key is finalized.

public IntPtr ParentWindowHandle { get; set; }

Gets or sets the window handle that should be used as the parent window for dialog boxes that are created by Cryptography Next Generation (CNG) classes.

public CngProvider Provider { get; set; }

Gets or sets the key storage provider (KSP) to create a key in.

public CngUIPolicy UIPolicy { get; set; }

Gets or sets information about the user interface to display when a key is created or accessed.

Initializes a new instance of the CngKeyCreationParameters class.