CngAlgorithmGroup(String) Constructor

Definition

Initializes a new instance of the CngAlgorithmGroup class.

C#
public CngAlgorithmGroup(string algorithmGroup);

Parameters

algorithmGroup
String

The name of the algorithm group to initialize.

Exceptions

The algorithmGroup parameter is null.

The algorithmGroup parameter length is 0 (zero).

Remarks

Instances of the CngAlgorithmGroup class internally maintain the algorithm group name that is specified by the algorithmGroup parameter.

The primary purpose of this constructor is to provide a method for creating CngAlgorithmGroup objects for algorithm groups that are not represented by the static properties of the CngAlgorithmGroup class. This capacity enables future .NET Framework releases, service packs, and third-party developers to add new algorithm groups, which can be accessed just like the algorithm groups that are currently available.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5