Udostępnij za pośrednictwem


ECDiffieHellmanCngPublicKey.ToXmlString Metoda

Definicja

Przestroga

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 klucz publiczny do ciągu XML w formacie 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

Zwraca

Ciąg XML zawierający serializowany ECDiffieHellmanCngPublicKey klucz publiczny.

Atrybuty

Wyjątki

.NET Core i .NET 5+: we wszystkich przypadkach.

Uwagi

Zobacz ECKeyXmlFormat.Rfc4050 , aby uzyskać informacje o formacie XML używanym przez tę metodę.

Dotyczy