ECDiffieHellmanCngPublicKey.ToXmlString Method

Definition

Serializes the ECDiffieHellmanCngPublicKey public key to an XML string in RFC 4050 format.

public:
 override System::String ^ ToXmlString();
public override string ToXmlString();
override this.ToXmlString : unit -> string
Public Overrides Function ToXmlString () As String

Returns

An XML string that contains the serialized ECDiffieHellmanCngPublicKey public key.

Exceptions

.NET Core and .NET 5+: In all cases.

Remarks

See ECKeyXmlFormat.Rfc4050 for information about the XML format that this method uses.

Applies to