ECDiffieHellmanCngPublicKey.FromXmlString Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Converts an XML string to an ECDiffieHellmanCngPublicKey object.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public static ECDiffieHellmanCngPublicKey FromXmlString(
	string xml
)

Parameters

xml
Type: System.String

An XML string that contains an Elliptic Curve Diffie-Hellman (ECDH) key.

Return Value

Type: System.Security.Cryptography.ECDiffieHellmanCngPublicKey

An object that contains the ECDH public key that is specified by the given XML.

Exception Condition
ArgumentNullException

The xml parameter is null.

ArgumentException

The xml parameter does not specify an ECDiffieHellman key.

This static method is shared among all ECDiffieHellmanCngPublicKey instances.

.NET Framework
Available since 3.5
Return to top
Show: