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 chiave ECDiffieHellmanPublicKey in una matrice di byte.

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

Restituisce

Byte[]

Matrice di byte contenente la chiave pubblica ECDH (Diffie-Hellman a curva ellittica) serializzata.

Attributi

Eccezioni

Linux e macOS: in tutti i casi.

Si applica a