ECDiffieHellmanCngPublicKey.FromXmlString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts an XML string to an ECDiffieHellmanCngPublicKey object.
public:
static System::Security::Cryptography::ECDiffieHellmanCngPublicKey ^ FromXmlString(System::String ^ xml);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString(string xml);
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString(string xml);
[<System.Security.SecurityCritical>]
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
static member FromXmlString : string -> System.Security.Cryptography.ECDiffieHellmanCngPublicKey
Public Shared Function FromXmlString (xml As String) As ECDiffieHellmanCngPublicKey
Parameters
- xml
- String
An XML string that contains an Elliptic Curve Diffie-Hellman (ECDH) key.
Returns
An object that contains the ECDH public key that is specified by the given XML.
- Attributes
Exceptions
The xml parameter is null.
The xml parameter does not specify an ECDiffieHellman key.
.NET Core and .NET 5+: In all cases.
Remarks
This static method is shared among all ECDiffieHellmanCngPublicKey instances.