ECDiffieHellmanCng.FromXmlString Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Désérialise les informations de clé à partir d’une chaîne XML.
Surcharges
| Nom | Description |
|---|---|
| FromXmlString(String) |
Cette méthode n’est pas implémentée. |
| FromXmlString(String, ECKeyXmlFormat) |
Obsolète.
Désérialise les informations de clé d’une chaîne XML à l’aide du format spécifié. |
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
Informations de clé XML à désérialiser.
Exceptions
Cette méthode n’a pas été remplacée pour cette instance.
Remarques
Pour désérialiser une clé XML, utilisez plutôt la FromXmlString(String, ECKeyXmlFormat) surcharge.
S’applique à
FromXmlString(String, ECKeyXmlFormat)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- 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é d’une chaîne XML à l’aide du format spécifié.
public:
void FromXmlString(System::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);
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}")>]
override this.FromXmlString : string * System.Security.Cryptography.ECKeyXmlFormat -> unit
override this.FromXmlString : string * System.Security.Cryptography.ECKeyXmlFormat -> unit
Public Sub FromXmlString (xml As String, format As ECKeyXmlFormat)
Paramètres
- xml
- String
Informations de clé XML à désérialiser.
- format
- ECKeyXmlFormat
Une des valeurs d’énumération qui spécifie le format de la chaîne XML. Le seul format actuellement accepté est Rfc4050.
- Attributs
Exceptions
xml a la valeur null.
xml est mal formé.
format spécifie un format non valide. La seule valeur acceptée est Rfc4050.
Toutes les autres erreurs.
.NET Core et .NET 5+ : dans tous les cas.