ECDiffieHellmanPublicKey.ToByteArray Metoda

Definice

Upozornění

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

Serializuje ECDiffieHellmanPublicKey objekt BLOB klíče na bajtové pole.

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

Návraty

Byte[]

Bajtové pole obsahující veřejný klíč serializované elliptické křivky Diffie-Hellman (ECDH).

Atributy

Výjimky

Linux a macOS: Ve všech případech.

Platí pro