ECDsaCng.ToXmlString Metodo

Definizione

Serializza le informazioni sulla chiave in una stringa XML.

Overload

Nome Descrizione
ToXmlString(Boolean)

Questo metodo non viene implementato.

ToXmlString(ECKeyXmlFormat)
Obsoleti.

Serializza le informazioni sulla chiave in una stringa XML utilizzando il formato specificato.

ToXmlString(Boolean)

Questo metodo non viene implementato.

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

Parametri

includePrivateParameters
Boolean

true per includere parametri privati; in caso contrario, false.

Valori restituiti

Non applicabile.

Eccezioni

Questo metodo non viene implementato.

Commenti

Per convertire la chiave corrente in una rappresentazione XML, utilizzare invece l'overload ToXmlString(ECKeyXmlFormat) .

Si applica a

ToXmlString(ECKeyXmlFormat)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Attenzione

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.

Serializza le informazioni sulla chiave in una stringa XML utilizzando il formato specificato.

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

Parametri

format
ECKeyXmlFormat

Uno dei valori di enumerazione che specifica il formato della stringa XML. L'unico formato attualmente accettato è Rfc4050.

Valori restituiti

Oggetto stringa che contiene le informazioni sulla chiave, serializzate in una stringa XML in base al formato richiesto.

Attributi

Eccezioni

format specifica un formato non valido. L'unico valore accettato è Rfc4050.

Tutti gli altri errori.

Si applica a