ECDiffieHellmanPublicKey.ToByteArray Metodo

Definizione

Attenzione

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

Serializza il BLOB della ECDiffieHellmanPublicKey chiave in una matrice di byte.

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()

Valori restituiti

Byte[]

Matrice di byte che contiene la chiave pubblica ECDH (Elliptic Curve Diffie-Hellman) serializzata.

Attributi

Eccezioni

Linux e macOS: in tutti i casi.

Si applica a