CngKeyBlobFormat(String) Constructor

Definition

Initializes a new instance of the CngKeyBlobFormat class by using the specified format.

C#
public CngKeyBlobFormat(string format);

Parameters

format
String

The key BLOB format to initialize.

Exceptions

The format parameter is null.

The format parameter length is 0 (zero).

Remarks

The primary purpose of this constructor is to provide a method for creating CngKeyBlobFormat objects for format types that are not represented by the static properties of the CngKeyBlobFormat class. This capacity allows future .NET Framework releases, service packs, and third-party developers to add new key BLOB formats, which can be accessed just like the key BLOB formats 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