Sdílet prostřednictvím


ECDiffieHellmanCngPublicKey.ToXmlString Metoda

Definice

Upozornění

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.

Serializuje ECDiffieHellmanCngPublicKey veřejný klíč na řetězec XML ve formátu 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

Návraty

Řetězec XML, který obsahuje serializovaný ECDiffieHellmanCngPublicKey veřejný klíč.

Atributy

Výjimky

.NET Core a .NET 5+: Ve všech případech.

Poznámky

Informace o formátu XML, který tato metoda používá, najdete v tématu ECKeyXmlFormat.Rfc4050 .

Platí pro