ECDsaCng.ToXmlString メソッド

定義

キー情報を 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)

ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
Cng.NotSupported.cs
ソース:
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 文字列の形式を指定する列挙値の 1 つ。 現在受け入れ可能な形式は Rfc4050のみです。

返品

要求された形式に従って XML 文字列にシリアル化された、キー情報を含む文字列オブジェクト。

属性

例外

format は無効な形式を指定します。 受け入れられる値は Rfc4050のみです。

その他すべてのエラー。

適用対象