ECDiffieHellmanCngPublicKey.FromXmlString(String) Methode

Definitie

Let op

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.

Converteert een XML-tekenreeks naar een ECDiffieHellmanCngPublicKey object.

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

Parameters

xml
String

Een XML-tekenreeks die een elliptische curve Diffie-Hellman (ECDH)-sleutel bevat.

Retouren

Een object dat de openbare ECDH-sleutel bevat die is opgegeven door de opgegeven XML.

Kenmerken

Uitzonderingen

De xml parameter is null.

De xml parameter geeft geen sleutel op ECDiffieHellman .

.NET Core en .NET 5+: In alle gevallen.

Opmerkingen

Deze statische methode wordt gedeeld tussen alle ECDiffieHellmanCngPublicKey exemplaren.

Van toepassing op