Breyta

Deila með


ECDiffieHellmanCng.FromXmlString Method

Definition

Deserializes the key information from an XML string.

Overloads

FromXmlString(String)

This method is not implemented.

FromXmlString(String, ECKeyXmlFormat)
Obsolete.

Deserializes the key information from an XML string by using the specified format.

FromXmlString(String)

This method is not implemented.

public:
 override void FromXmlString(System::String ^ xmlString);
public override void FromXmlString (string xmlString);
override this.FromXmlString : string -> unit
Public Overrides Sub FromXmlString (xmlString As String)

Parameters

xmlString
String

The XML-based key information to be deserialized.

Exceptions

This method was not overridden for this instance.

Remarks

To deserialize an XML key, use the FromXmlString(String, ECKeyXmlFormat) overload instead.

Applies to

FromXmlString(String, ECKeyXmlFormat)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

Caution

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.

Deserializes the key information from an XML string by using the specified format.

public:
 void FromXmlString(System::String ^ xml, System::Security::Cryptography::ECKeyXmlFormat format);
public void FromXmlString (string xml, System.Security.Cryptography.ECKeyXmlFormat format);
[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 void FromXmlString (string xml, System.Security.Cryptography.ECKeyXmlFormat format);
override this.FromXmlString : string * System.Security.Cryptography.ECKeyXmlFormat -> unit
[<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}")>]
override this.FromXmlString : string * System.Security.Cryptography.ECKeyXmlFormat -> unit
Public Sub FromXmlString (xml As String, format As ECKeyXmlFormat)

Parameters

xml
String

The XML-based key information to be deserialized.

format
ECKeyXmlFormat

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

Attributes

Exceptions

xml is null.

xml is malformed.

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

All other errors.

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

Applies to