ECDiffieHellmanCng.ToXmlString Method

Definition

Serializes the key information to an XML string.

Overloads

ToXmlString(ECKeyXmlFormat)

Serializes the key information to an XML string by using the specified format.

ToXmlString(Boolean)

This method is not implemented.

ToXmlString(ECKeyXmlFormat)

Serializes the key information to an XML string by using the specified format.

public:
 System::String ^ ToXmlString(System::Security::Cryptography::ECKeyXmlFormat format);
public string ToXmlString (System.Security.Cryptography.ECKeyXmlFormat format);
override this.ToXmlString : System.Security.Cryptography.ECKeyXmlFormat -> string
Public Function ToXmlString (format As ECKeyXmlFormat) As String

Parameters

format
ECKeyXmlFormat

One of the enumeration values that specifies the format of the XML string. The only currently accepted format is Rfc4050.

Returns

String

A string object that contains the key information, serialized to an XML string, according to the requested format.

Exceptions

format specifies an invalid format. The only accepted value is Rfc4050.

Applies to

ToXmlString(Boolean)

This method is not implemented.

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

Parameters

includePrivateParameters
Boolean

true to include private parameters; otherwise, false.

Returns

String

Not applicable.

Exceptions

This method was not overridden for this instance.

Remarks

To convert the current key to an XML representation, use the ToXmlString(ECKeyXmlFormat) overload instead.

Applies to