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

System.Security.Cryptography.CngUIPolicy

public sealed class CngUIPolicy
Encapsulates optional configuration parameters for the user interface (UI) that Cryptography Next Generation (CNG) displays when you access a protected key.
public string CreationTitle { get; }

Gets the title that is displayed by the UI prompt.

public string Description { get; }

Gets the description string that is displayed by the UI prompt.

public string FriendlyName { get; }

Gets the friendly name that is displayed by the UI prompt.

Gets the UI protection level for the key.

public string UseContext { get; }

Gets the description of how the key will be used.

public CngUIPolicy(CngUIProtectionLevels protectionLevel)

Initializes a new instance of the CngUIPolicy class by using the specified protection level.

public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName)

Initializes a new instance of the CngUIPolicy class by using the specified protection level and friendly name.

public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description)

Initializes a new instance of the CngUIPolicy class by using the specified protection level, friendly name, and description.

public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext)

Initializes a new instance of the CngUIPolicy class by using the specified protection level, friendly name, description string, and use context.

public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext, string creationTitle)

Initializes a new instance of the CngUIPolicy class by using the specified protection level, friendly name, description string, use context, and title.