ECDiffieHellmanCng.FromXmlString Metoda

Definicja

Deserializuje informacje o kluczu z ciągu XML.

Przeciążenia

FromXmlString(String)

Ta metoda nie jest zaimplementowana.

FromXmlString(String, ECKeyXmlFormat)
Przestarzałe.

Deserializuje informacje o kluczu z ciągu XML przy użyciu określonego formatu.

FromXmlString(String)

Ta metoda nie jest zaimplementowana.

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

Informacje o kluczu oparte na formacie XML, które mają zostać zdeserializowane.

Wyjątki

Ta metoda nie została zastąpiona dla tego wystąpienia.

Uwagi

Aby wykonać deserializowanie klucza XML, użyj przeciążenia FromXmlString(String, ECKeyXmlFormat) .

Dotyczy

FromXmlString(String, ECKeyXmlFormat)

Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs
Źródło:
Cng.NotSupported.cs

Przestroga

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 informacje o kluczu z ciągu XML przy użyciu określonego formatu.

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

Informacje o kluczu oparte na formacie XML, które mają zostać zdeserializowane.

format
ECKeyXmlFormat

Jedna z wartości wyliczenia, która określa format ciągu XML. Jedynym obecnie akceptowanym formatem jest Rfc4050.

Atrybuty

Wyjątki

xml to null.

xml jest źle sformułowany.

format określa nieprawidłowy format. Jedyną akceptowaną wartością jest Rfc4050.

Wszystkie inne błędy.

.NET Core i .NET 5+: we wszystkich przypadkach.

Dotyczy