DSACryptoServiceProvider.ExportParameters メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DSACryptoServiceProvider.ExportParameters メソッドの意味・解説 

DSACryptoServiceProvider.ExportParameters メソッド

DSAParameters をエクスポートます。

名前空間: System.Security.Cryptography
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Overrides Function
 ExportParameters ( _
    includePrivateParameters As Boolean _
) As DSAParameters
Dim instance As DSACryptoServiceProvider
Dim includePrivateParameters As Boolean
Dim returnValue As DSAParameters

returnValue = instance.ExportParameters(includePrivateParameters)
public override DSAParameters ExportParameters (
    bool includePrivateParameters
)
public:
virtual DSAParameters ExportParameters (
    bool includePrivateParameters
) override
public DSAParameters ExportParameters (
    boolean includePrivateParameters
)
public override function ExportParameters (
    includePrivateParameters : boolean
) : DSAParameters

パラメータ

includePrivateParameters

プライベート パラメータ含め場合trueそれ以外場合false

戻り値
DSAパラメータ

例外例外
例外種類条件

CryptographicException

キーエクスポートできません。

使用例使用例

DSACryptoServiceProvider オブジェクトから DSAParameters オブジェクトキー情報エクスポートするコード例次に示します

Try
    'Create a new DSACryptoServiceProvider object.
    Dim DSA As New DSACryptoServiceProvider()


    'Export the key information to an DSAParameters object.
    'Pass false to export the public key information or pass
    'true to export public and private key information.
    Dim DSAParams As DSAParameters = DSA.ExportParameters(False)


Catch e As CryptographicException
    'Catch this exception in case the encryption did
    'not succeed.
    Console.WriteLine(e.Message)
End Try
try
{
    //Create a new DSACryptoServiceProvider object.
    DSACryptoServiceProvider DSA = new DSACryptoServiceProvider();


    //Export the key information to an DSAParameters object.
    //Pass false to export the public key information or pass
    //true to export public and private key information.
    DSAParameters DSAParams = DSA.ExportParameters(false);


}
catch(CryptographicException e)
{
    //Catch this exception in case the encryption did
    //not succeed.
    Console.WriteLine(e.Message);

}
try
{
   //Create a new DSACryptoServiceProvider object.
   DSACryptoServiceProvider^ DSA = gcnew DSACryptoServiceProvider;
   
   //Export the key information to an DSAParameters object.
   //Pass false to export the public key information or pass
   //true to export public and private key information.
   DSAParameters DSAParams = DSA->ExportParameters( false );
}
catch ( CryptographicException^ e ) 
{
   //Catch this exception in case the encryption did
   //not succeed.
   Console::WriteLine( e->Message );
}
try {
    // Create a new DSACryptoServiceProvider object.
    DSACryptoServiceProvider dsa = new DSACryptoServiceProvider();

    // Export the key information to an DSAParameters object.
    // Pass false to export the public key information or pass
    // true to export public and private key information.
    DSAParameters dsaParams = dsa.ExportParameters(false);
}
catch (CryptographicException e) {
    // Catch this exception in case the encryption did
    // not succeed.
    Console.WriteLine(e.get_Message());
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DSACryptoServiceProvider クラス
DSACryptoServiceProvider メンバ
System.Security.Cryptography 名前空間
その他の技術情報
暗号サービス


このページでは「.NET Framework クラス ライブラリ リファレンス」からDSACryptoServiceProvider.ExportParameters メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDSACryptoServiceProvider.ExportParameters メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDSACryptoServiceProvider.ExportParameters メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DSACryptoServiceProvider.ExportParameters メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DSACryptoServiceProvider.ExportParameters メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS