Condividi tramite


ECDiffieHellmanCngPublicKey.FromXmlString(String) Metodo

Definizione

Attenzione

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.

Converte una stringa XML in un oggetto ECDiffieHellmanCngPublicKey.

public:
 static System::Security::Cryptography::ECDiffieHellmanCngPublicKey ^ FromXmlString(System::String ^ xml);
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}")]
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString (string xml);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString (string xml);
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
[<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
[<System.Security.SecurityCritical>]
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
Public Shared Function FromXmlString (xml As String) As ECDiffieHellmanCngPublicKey

Parametri

xml
String

Stringa XML contenente una chiave ECDH (Diffie-Hellman a curva ellittica).

Restituisce

Oggetto contenente la chiave pubblica ECDH specificata dalla stringa XML indicata.

Attributi

Eccezioni

Il valore del parametro xml è null.

Il parametro xml non specifica una chiave ECDiffieHellman.

.NET Core e .NET 5+: in tutti i casi.

Commenti

Questo metodo statico viene condiviso tra tutte le ECDiffieHellmanCngPublicKey istanze.

Si applica a