Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ToByteArray Method
Collapse the table of content
Expand the table of content

ECDiffieHellmanPublicKey.ToByteArray Method

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

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft