ECDiffieHellmanPublicKey.ToByteArray Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Serializes the ECDiffieHellmanPublicKey key BLOB to a byte array.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public virtual byte[] ToByteArray()

Return Value

Type: System.Byte[]

A byte array that contains the serialized Elliptic Curve Diffie-Hellman (ECDH) public key.

.NET Framework
Available since 3.5
Return to top