ECDiffieHellmanPublicKey Constructors

Definition

Overloads

ECDiffieHellmanPublicKey()

Initializes a new instance of the ECDiffieHellmanPublicKey class.

ECDiffieHellmanPublicKey(Byte[])
Obsolete.

Initializes a new instance of the ECDiffieHellmanPublicKey class.

ECDiffieHellmanPublicKey()

Source:
ECDiffieHellmanPublicKey.cs
Source:
ECDiffieHellmanPublicKey.cs
Source:
ECDiffieHellmanPublicKey.cs

Initializes a new instance of the ECDiffieHellmanPublicKey class.

C#
protected ECDiffieHellmanPublicKey();

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.1

ECDiffieHellmanPublicKey(Byte[])

Source:
ECDiffieHellmanPublicKey.cs
Source:
ECDiffieHellmanPublicKey.cs
Source:
ECDiffieHellmanPublicKey.cs

Caution

ECDiffieHellmanPublicKey.ToByteArray() and the associated constructor do not have a consistent and interoperable implementation on all platforms. Use ECDiffieHellmanPublicKey.ExportSubjectPublicKeyInfo() instead.

Initializes a new instance of the ECDiffieHellmanPublicKey class.

C#
[System.Obsolete("ECDiffieHellmanPublicKey.ToByteArray() and the associated constructor do not have a consistent and interoperable implementation on all platforms. Use ECDiffieHellmanPublicKey.ExportSubjectPublicKeyInfo() instead.", DiagnosticId="SYSLIB0043", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected ECDiffieHellmanPublicKey(byte[] keyBlob);
C#
protected ECDiffieHellmanPublicKey(byte[] keyBlob);

Parameters

keyBlob
Byte[]

A byte array that represents an ECDiffieHellmanPublicKey object.

Attributes

Exceptions

keyBlob is null.

Remarks

This constructor is called by classes that derive from the ECDiffieHellmanPublicKey class. The ECDiffieHellmanCngPublicKey class is the only currently supported implementation.

Applies to

.NET 10 and other versions
Product Versions (Obsolete)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 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, 2.1