ECDsaCng.FromXmlString Metodo

Definizione

Deserializza le informazioni sulla chiave da una stringa XML.

Overload

Nome Descrizione
FromXmlString(String, ECKeyXmlFormat)
Obsoleti.

Deserializza le informazioni sulla chiave da una stringa XML utilizzando il formato specificato.

FromXmlString(String)

Questo metodo non viene implementato.

FromXmlString(String, ECKeyXmlFormat)

Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs
Origine:
Cng.NotSupported.cs

Attenzione

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.

Deserializza le informazioni sulla chiave da una stringa XML utilizzando il formato specificato.

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

Parametri

xml
String

Informazioni sulla chiave basate su XML da deserializzare.

format
ECKeyXmlFormat

Uno dei valori di enumerazione che specifica il formato della stringa XML. L'unico formato attualmente accettato è Rfc4050.

Attributi

Eccezioni

xml è null.

format specifica un formato non valido. L'unico valore accettato è Rfc4050.

Tutti gli altri errori.

Si applica a

FromXmlString(String)

Questo metodo non viene implementato.

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)

Parametri

xmlString
String

Informazioni sulla chiave basate su XML da deserializzare.

Eccezioni

Questo metodo non è stato sottoposto a override per questa istanza.

Commenti

Per deserializzare una chiave XML, utilizzare invece l'overload FromXmlString(String, ECKeyXmlFormat) .

Si applica a