다음을 통해 공유


ECDiffieHellmanCngPublicKey.ToXmlString 메서드

정의

주의

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.

ECDiffieHellmanCngPublicKey 공개 키를 RFC 4050 형식의 XML 문자열로 serialize합니다.

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

반환

serialize된 ECDiffieHellmanCngPublicKey 공개 키가 들어 있는 XML 문자열입니다.

특성

예외

.NET Core 및 .NET 5 이상: 모든 경우에.

설명

이 메서드에서 사용하는 XML 형식에 대한 자세한 내용은 를 참조하세요 ECKeyXmlFormat.Rfc4050 .

적용 대상