ECDiffieHellmanCngPublicKey.FromXmlString(String) Método

Definición

Precaución

ToXmlString and FromXmlString have no implementation for ECC types, and are obsolete. Use a standard import and export format such as ExportSubjectPublicKeyInfo or ImportSubjectPublicKeyInfo for public keys and ExportPkcs8PrivateKey or ImportPkcs8PrivateKey for private keys.

Convierte una cadena XML en un ECDiffieHellmanCngPublicKey objeto .

public:
 static System::Security::Cryptography::ECDiffieHellmanCngPublicKey ^ FromXmlString(System::String ^ xml);
[System.Obsolete("ToXmlString and FromXmlString have no implementation for ECC types, and are obsolete. Use a standard import and export format such as ExportSubjectPublicKeyInfo or ImportSubjectPublicKeyInfo for public keys and ExportPkcs8PrivateKey or ImportPkcs8PrivateKey for private keys.", DiagnosticId="SYSLIB0042", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString(string xml);
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString(string xml);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString(string xml);
[<System.Obsolete("ToXmlString and FromXmlString have no implementation for ECC types, and are obsolete. Use a standard import and export format such as ExportSubjectPublicKeyInfo or ImportSubjectPublicKeyInfo for public keys and ExportPkcs8PrivateKey or ImportPkcs8PrivateKey for private keys.", DiagnosticId="SYSLIB0042", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
[<System.Security.SecurityCritical>]
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
Public Shared Function FromXmlString (xml As String) As ECDiffieHellmanCngPublicKey

Parámetros

xml
String

Cadena XML que contiene una clave de curva elíptica Diffie-Hellman (ECDH).

Devoluciones

Objeto que contiene la clave pública ECDH especificada por el XML especificado.

Atributos

Excepciones

El xml parámetro es null.

El xml parámetro no especifica una ECDiffieHellman clave.

.NET Core y .NET 5+: En todos los casos.

Comentarios

Este método estático se comparte entre todas las ECDiffieHellmanCngPublicKey instancias.

Se aplica a