Share via


ECDsaCng.FromXmlString Méthode

Définition

Désérialise les informations de clés à partir d'une chaîne XML.

Surcharges

FromXmlString(String, ECKeyXmlFormat)
Obsolète.

Désérialise les informations de clés d'une chaîne XML en utilisant le format spécifié.

FromXmlString(String)

Cette méthode n’est pas implémentée.

FromXmlString(String, ECKeyXmlFormat)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Attention

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.

Désérialise les informations de clés d'une chaîne XML en utilisant le format spécifié.

public:
 void FromXmlString(System::String ^ xml, System::Security::Cryptography::ECKeyXmlFormat format);
public void FromXmlString (string xml, System.Security.Cryptography.ECKeyXmlFormat format);
[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 void FromXmlString (string xml, System.Security.Cryptography.ECKeyXmlFormat format);
override this.FromXmlString : string * System.Security.Cryptography.ECKeyXmlFormat -> unit
[<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}")>]
override this.FromXmlString : string * System.Security.Cryptography.ECKeyXmlFormat -> unit
Public Sub FromXmlString (xml As String, format As ECKeyXmlFormat)

Paramètres

xml
String

Les informations de clés basées sur XML à désérialiser.

format
ECKeyXmlFormat

L'une des valeurs d'énumération qui spécifie le format de la chaîne XML. Le seul format accepté actuellement est Rfc4050.

Attributs

Exceptions

xml a la valeur null.

format spécifie un format non valide. La seule valeur acceptée est Rfc4050.

Toutes les autres erreurs.

S’applique à

FromXmlString(String)

Cette méthode n’est pas implémentée.

public:
 override void FromXmlString(System::String ^ xmlString);
public override void FromXmlString (string xmlString);
override this.FromXmlString : string -> unit
Public Overrides Sub FromXmlString (xmlString As String)

Paramètres

xmlString
String

Les informations de clés basées sur XML à désérialiser.

Exceptions

Cette méthode n'a pas été substituée pour cette instance.

Remarques

Pour désérialiser une clé XML, utilisez la surcharge à la FromXmlString(String, ECKeyXmlFormat) place.

S’applique à