ECDsaCng.ToXmlString Méthode

Définition

Sérialise les informations de clés en une chaîne XML.

Surcharges

ToXmlString(Boolean)

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

ToXmlString(ECKeyXmlFormat)
Obsolète.

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

ToXmlString(Boolean)

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

public:
 override System::String ^ ToXmlString(bool includePrivateParameters);
public override string ToXmlString (bool includePrivateParameters);
override this.ToXmlString : bool -> string
Public Overrides Function ToXmlString (includePrivateParameters As Boolean) As String

Paramètres

includePrivateParameters
Boolean

true pour inclure les paramètres privés ; sinon false.

Retours

String

Non applicable.

Exceptions

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

Remarques

Pour convertir la clé actuelle en représentation XML, utilisez plutôt la ToXmlString(ECKeyXmlFormat) surcharge.

S’applique à

ToXmlString(ECKeyXmlFormat)

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.

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

public:
 System::String ^ ToXmlString(System::Security::Cryptography::ECKeyXmlFormat format);
public string ToXmlString (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 string ToXmlString (System.Security.Cryptography.ECKeyXmlFormat format);
override this.ToXmlString : System.Security.Cryptography.ECKeyXmlFormat -> string
[<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.ToXmlString : System.Security.Cryptography.ECKeyXmlFormat -> string
Public Function ToXmlString (format As ECKeyXmlFormat) As String

Paramètres

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.

Retours

String

Un objet chaîne qui contient les informations de clés, sérialisées en une chaîne XML, conformément au format demandé.

Attributs

Exceptions

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

Toutes les autres erreurs.

S’applique à