ECDiffieHellmanCng.ToXmlString 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将密钥信息序列化为 XML 字符串。
重载
| 名称 | 说明 |
|---|---|
| ToXmlString(Boolean) |
此方法未实现。 |
| ToXmlString(ECKeyXmlFormat) |
已过时.
使用指定的格式将密钥信息序列化为 XML 字符串。 |
ToXmlString(Boolean)
此方法未实现。
public:
override System::String ^ ToXmlString(bool includePrivateParameters);
public override string ToXmlString(bool includePrivateParameters);
override this.ToXmlString : bool -> string
Public Overrides Function ToXmlString (includePrivateParameters As Boolean) As String
参数
- includePrivateParameters
- Boolean
true 包含专用参数;否则,为 false.
返回
不適用。
例外
未为此实例重写此方法。
注解
若要将当前键转换为 XML 表示形式,请改用 ToXmlString(ECKeyXmlFormat) 重载。
适用于
ToXmlString(ECKeyXmlFormat)
- Source:
- Cng.NotSupported.cs
- Source:
- Cng.NotSupported.cs
- 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:
System::String ^ ToXmlString(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 string ToXmlString(System.Security.Cryptography.ECKeyXmlFormat format);
public string ToXmlString(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.ToXmlString : System.Security.Cryptography.ECKeyXmlFormat -> string
override this.ToXmlString : System.Security.Cryptography.ECKeyXmlFormat -> string
Public Function ToXmlString (format As ECKeyXmlFormat) As String
参数
- format
- ECKeyXmlFormat
指定 XML 字符串格式的枚举值之一。 当前唯一接受的格式为 Rfc4050。
返回
一个字符串对象,其中包含密钥信息,根据请求的格式序列化为 XML 字符串。
- 属性
例外
format 指定无效格式。 唯一接受的值是 Rfc4050。
.NET Core 和 .NET 5+:在所有情况下。