ECDiffieHellmanCng.FromXmlString 方法

定义

反序列化 XML 字符串中的密钥信息。Deserializes the key information from an XML string.

重载

FromXmlString(String, ECKeyXmlFormat)

使用指定的格式反序列化 XML 字符串中的密钥信息。Deserializes the key information from an XML string by using the specified format.

FromXmlString(String)

未实现此方法。This method is not implemented.

FromXmlString(String, ECKeyXmlFormat)

使用指定的格式反序列化 XML 字符串中的密钥信息。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);
override this.FromXmlString : string * System.Security.Cryptography.ECKeyXmlFormat -> unit
Public Sub FromXmlString (xml As String, format As ECKeyXmlFormat)

参数

xml
String

要反序列化的基于 XML 的密钥信息。The XML-based key information to be deserialized.

format
ECKeyXmlFormat

枚举值之一,它指定 XML 字符串的格式。One of the enumeration values that specifies the format of the XML string. 当前接受的唯一格式为 Rfc4050The only currently accepted format is Rfc4050.

异常

xmlnullxml is null.

xml 的格式不正确。xml is malformed.

format 指定的格式无效。format specifies an invalid format. 唯一接受的值为 Rfc4050The only accepted value is Rfc4050.

所有其他错误。All other errors.

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)

参数

xmlString
String

要反序列化的基于 XML 的密钥信息。The XML-based key information to be deserialized.

异常

未重写此实例的方法。This method was not overridden for this instance.

注解

若要反序列化 XML 密钥, FromXmlString(String, ECKeyXmlFormat)请改用重载。To deserialize an XML key, use the FromXmlString(String, ECKeyXmlFormat) overload instead.

适用于