Aracılığıyla paylaş


ECDiffieHellmanCngPublicKey.ToXmlString Yöntem

Tanım

Dikkat

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.

Ortak anahtarı RFC 4050 biçiminde bir XML dizesine serileştirir ECDiffieHellmanCngPublicKey .

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

Döndürülenler

Seri hale getirilmiş ECDiffieHellmanCngPublicKey ortak anahtarı içeren bir XML dizesi.

Öznitelikler

Özel durumlar

.NET Core ve .NET 5+: Her durumda.

Açıklamalar

Bu yöntemin kullandığı XML biçimi hakkında bilgi için bkz ECKeyXmlFormat.Rfc4050 .

Şunlara uygulanır