다음을 통해 공유


ECDiffieHellmanCngPublicKey.FromXmlString(String) 메서드

정의

주의

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.

XML 문자열을 ECDiffieHellmanCngPublicKey 개체로 변환합니다.

public:
 static System::Security::Cryptography::ECDiffieHellmanCngPublicKey ^ FromXmlString(System::String ^ xml);
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString (string xml);
[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 static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString (string xml);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString (string xml);
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
[<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}")>]
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
[<System.Security.SecurityCritical>]
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
Public Shared Function FromXmlString (xml As String) As ECDiffieHellmanCngPublicKey

매개 변수

xml
String

ECDH(Elliptic Curve Diffie-Hellman) 키가 들어 있는 XML 문자열입니다.

반환

특정 XML에 지정된 ECDH 공개 키가 들어 있는 개체입니다.

특성

예외

xml 매개 변수가 null인 경우

xml 매개 변수에 ECDiffieHellman 키가 지정되지 않은 경우

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

설명

이 정적 메서드는 모든 ECDiffieHellmanCngPublicKey 인스턴스 간에 공유됩니다.

적용 대상