ECDsaCng.FromXmlString Metoda

Definice

Deserializuje klíčové informace z řetězce XML.

Přetížení

FromXmlString(String, ECKeyXmlFormat)
Zastaralé.

Deserializuje klíčové informace z řetězce XML pomocí zadaného formátu.

FromXmlString(String)

Tato metoda není implementována.

FromXmlString(String, ECKeyXmlFormat)

Upozornění

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.

Deserializuje klíčové informace z řetězce XML pomocí zadaného formátu.

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)

Parametry

xml
String

Klíčové informace založené na jazyce XML, které se mají deserializovat.

format
ECKeyXmlFormat

Jedna z hodnot výčtu, která určuje formát řetězce XML. Jediný aktuálně přijatý formát je Rfc4050.

Atributy

Výjimky

xml je null.

format určuje neplatný formát. Jediná akceptovaná hodnota je Rfc4050.

Všechny ostatní chyby.

Platí pro

FromXmlString(String)

Tato metoda není implementována.

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)

Parametry

xmlString
String

Klíčové informace založené na jazyce XML, které se mají deserializovat.

Výjimky

Tato metoda nebyla přepsána pro tuto instanci.

Poznámky

Pokud chcete deserializovat klíč XML, použijte FromXmlString(String, ECKeyXmlFormat) místo toho přetížení.

Platí pro