ECDiffieHellmanCng.ToXmlString Méthode

Définition

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

Surcharges

Nom Description
ToXmlString(Boolean)

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

ToXmlString(ECKeyXmlFormat)
Obsolète.

Sérialise les informations de clé dans une chaîne XML à l’aide du 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 des paramètres privés ; sinon, false.

Retours

Non applicable.

Exceptions

Cette méthode n’a pas été remplacée pour cette instance.

Remarques

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

S’applique à

ToXmlString(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.

Sérialise les informations de clé dans une chaîne XML à l’aide du format spécifié.

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

Paramètres

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.

Retours

Objet de chaîne qui contient les informations de clé, sérialisées dans une chaîne XML, selon le format demandé.

Attributs

Exceptions

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

.NET Core et .NET 5+ : dans tous les cas.

S’applique à