ECDiffieHellmanCngPublicKey.ToXmlString Metodo

Definizione

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 la ECDiffieHellmanCngPublicKey chiave pubblica in una stringa XML in formato RFC 4050.

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

Valori restituiti

Stringa XML contenente la chiave pubblica serializzata ECDiffieHellmanCngPublicKey .

Attributi

Eccezioni

.NET Core e .NET 5+: in tutti i casi.

Commenti

Per ECKeyXmlFormat.Rfc4050 informazioni sul formato XML utilizzato da questo metodo, vedere .

Si applica a