ECDiffieHellmanPublicKey.ToByteArray Methode

Definitie

Let op

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

Serialiseert de ECDiffieHellmanPublicKey sleutel-BLOB naar een bytematrix.

public:
 virtual cli::array <System::Byte> ^ ToByteArray();
[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}")]
public virtual byte[] ToByteArray();
public virtual byte[] ToByteArray();
[<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}")>]
abstract member ToByteArray : unit -> byte[]
override this.ToByteArray : unit -> byte[]
abstract member ToByteArray : unit -> byte[]
override this.ToByteArray : unit -> byte[]
Public Overridable Function ToByteArray () As Byte()

Retouren

Byte[]

Een bytematrix die de openbare sleutel van de geserialiseerde elliptische curve Diffie-Hellman (ECDH) bevat.

Kenmerken

Uitzonderingen

Linux en macOS: In alle gevallen.

Van toepassing op