ECDsaCng.FromXmlString 方法

定义

反序列化 XML 字符串中的密钥信息。

重载

FromXmlString(String, ECKeyXmlFormat)
已过时.

使用指定的格式反序列化 XML 字符串中的密钥信息。

FromXmlString(String)

未实现此方法。

FromXmlString(String, ECKeyXmlFormat)

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

注意

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.

使用指定的格式反序列化 XML 字符串中的密钥信息。

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)

参数

xml
String

要反序列化的基于 XML 的密钥信息。

format
ECKeyXmlFormat

枚举值之一,它指定 XML 字符串的格式。 当前接受的唯一格式为 Rfc4050

属性

例外

xmlnull

format 指定的格式无效。 唯一接受的值为 Rfc4050

所有其他错误。

适用于

FromXmlString(String)

未实现此方法。

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)

参数

xmlString
String

要反序列化的基于 XML 的密钥信息。

例外

未重写此实例的方法。

注解

若要反序列化 XML 密钥,请 FromXmlString(String, ECKeyXmlFormat) 改用 重载。

适用于