Compartilhar via


ECDiffieHellmanCngPublicKey.ToXmlString Método

Definição

Cuidado

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.

Serializa a chave pública ECDiffieHellmanCngPublicKey para uma cadeia de caracteres XML no formato RFC 4050.

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

Retornos

Uma cadeia de caracteres XML que contém a chave pública ECDiffieHellmanCngPublicKey serializada.

Atributos

Exceções

.NET Core e .NET 5+: em todos os casos.

Comentários

Consulte ECKeyXmlFormat.Rfc4050 para obter informações sobre o formato XML que esse método usa.

Aplica-se a