ECDiffieHellmanCngPublicKey.ToXmlString Metod

Definition

Varning

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.

Serialiserar den ECDiffieHellmanCngPublicKey offentliga nyckeln till en XML-sträng i RFC 4050-format.

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

Returer

En XML-sträng som innehåller den serialiserade ECDiffieHellmanCngPublicKey offentliga nyckeln.

Attribut

Undantag

.NET Core och .NET 5+: I samtliga fall.

Kommentarer

Mer ECKeyXmlFormat.Rfc4050 information om DET XML-format som används i den här metoden finns i.

Gäller för