ECDiffieHellmanPublicKey.ToByteArray Método

Definición

Precaución

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

Serializa el BLOB de la clave ECDiffieHellmanPublicKey en una matriz de bytes.

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

Devoluciones

Byte[]

Matriz de bytes que contiene la clave pública Diffie-Hellman de curva elíptica (ECDH) serializada.

Atributos

Excepciones

Linux y macOS: en todos los casos.

Se aplica a