Bewerken

Delen via


CngUIPolicy Constructors

Definition

Initializes a new instance of the CngUIPolicy class.

Overloads

CngUIPolicy(CngUIProtectionLevels)

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

CngUIPolicy(CngUIProtectionLevels, String)

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

CngUIPolicy(CngUIProtectionLevels, String, String)

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

CngUIPolicy(CngUIProtectionLevels, String, String, String)

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

CngUIPolicy(CngUIProtectionLevels, String, String, String, String)

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

CngUIPolicy(CngUIProtectionLevels)

Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs

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

public:
 CngUIPolicy(System::Security::Cryptography::CngUIProtectionLevels protectionLevel);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel);
new System.Security.Cryptography.CngUIPolicy : System.Security.Cryptography.CngUIProtectionLevels -> System.Security.Cryptography.CngUIPolicy
Public Sub New (protectionLevel As CngUIProtectionLevels)

Parameters

protectionLevel
CngUIProtectionLevels

A bitwise combination of the enumeration values that specify the protection level.

Remarks

This constructor sets the protection level for the key in UI prompting scenarios.

Applies to

CngUIPolicy(CngUIProtectionLevels, String)

Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs

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

public:
 CngUIPolicy(System::Security::Cryptography::CngUIProtectionLevels protectionLevel, System::String ^ friendlyName);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel, string? friendlyName);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel, string friendlyName);
new System.Security.Cryptography.CngUIPolicy : System.Security.Cryptography.CngUIProtectionLevels * string -> System.Security.Cryptography.CngUIPolicy
Public Sub New (protectionLevel As CngUIProtectionLevels, friendlyName As String)

Parameters

protectionLevel
CngUIProtectionLevels

A bitwise combination of the enumeration values that specify the protection level.

friendlyName
String

A friendly name for the key to be used in the UI prompt. Specify a null string to use the default name.

Applies to

CngUIPolicy(CngUIProtectionLevels, String, String)

Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs

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

public:
 CngUIPolicy(System::Security::Cryptography::CngUIProtectionLevels protectionLevel, System::String ^ friendlyName, System::String ^ description);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel, string? friendlyName, string? description);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel, string friendlyName, string description);
new System.Security.Cryptography.CngUIPolicy : System.Security.Cryptography.CngUIProtectionLevels * string * string -> System.Security.Cryptography.CngUIPolicy
Public Sub New (protectionLevel As CngUIProtectionLevels, friendlyName As String, description As String)

Parameters

protectionLevel
CngUIProtectionLevels

A bitwise combination of the enumeration values that specify the protection level.

friendlyName
String

A friendly name for the key to be used in the UI prompt. Specify a null string to use the default name.

description
String

The full-text description of the key. Specify a null string to use the default description.

Applies to

CngUIPolicy(CngUIProtectionLevels, String, String, String)

Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs

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

public:
 CngUIPolicy(System::Security::Cryptography::CngUIProtectionLevels protectionLevel, System::String ^ friendlyName, System::String ^ description, System::String ^ useContext);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel, string? friendlyName, string? description, string? useContext);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext);
new System.Security.Cryptography.CngUIPolicy : System.Security.Cryptography.CngUIProtectionLevels * string * string * string -> System.Security.Cryptography.CngUIPolicy
Public Sub New (protectionLevel As CngUIProtectionLevels, friendlyName As String, description As String, useContext As String)

Parameters

protectionLevel
CngUIProtectionLevels

A bitwise combination of the enumeration values that specify the protection level.

friendlyName
String

A friendly name for the key to be used in the UI prompt. Specify a null string to use the default name.

description
String

The full-text description of the key. Specify a null string to use the default description.

useContext
String

A description of how the key will be used. Specify a null string to use the default description.

Applies to

CngUIPolicy(CngUIProtectionLevels, String, String, String, String)

Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs
Source:
CngUIPolicy.cs

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

public:
 CngUIPolicy(System::Security::Cryptography::CngUIProtectionLevels protectionLevel, System::String ^ friendlyName, System::String ^ description, System::String ^ useContext, System::String ^ creationTitle);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel, string? friendlyName, string? description, string? useContext, string? creationTitle);
public CngUIPolicy (System.Security.Cryptography.CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext, string creationTitle);
new System.Security.Cryptography.CngUIPolicy : System.Security.Cryptography.CngUIProtectionLevels * string * string * string * string -> System.Security.Cryptography.CngUIPolicy
Public Sub New (protectionLevel As CngUIProtectionLevels, friendlyName As String, description As String, useContext As String, creationTitle As String)

Parameters

protectionLevel
CngUIProtectionLevels

A bitwise combination of the enumeration values that specify the protection level.

friendlyName
String

A friendly name for the key to be used in the UI prompt. Specify a null string to use the default name.

description
String

The full-text description of the key. Specify a null string to use the default description.

useContext
String

A description of how the key will be used. Specify a null string to use the default description.

creationTitle
String

The title for the dialog box that provides the UI prompt. Specify a null string to use the default title.

Applies to