Share via


RSACng.ImportParameters(RSAParameters) メソッド

定義

パラメーター構造体に新しい CngKey を作成し、現在のインスタンスが扱っている既存のキーを置き換えます。

public:
 override void ImportParameters(System::Security::Cryptography::RSAParameters parameters);
public override void ImportParameters (System.Security.Cryptography.RSAParameters parameters);
override this.ImportParameters : System.Security.Cryptography.RSAParameters -> unit
Public Overrides Sub ImportParameters (parameters As RSAParameters)

パラメーター

parameters
RSAParameters

RSA パラメーター。

例外

parameters には指数も剰余も含まれていません。

parameters は有効な RSA 値ではありません。

- または -

parameters は完全なキーのペアであり、既定値の KSP が使用されています。

注釈

指数と剰余のみが含まれている場合 parameters は、公開キーのみがインポートされます。 P 値と Q 値も含まれている場合 parameters は、完全なキー ペアがインポートされます。

このメソッドは、指定したパラメーターを使用して新しいエフェメラル RSA キー オブジェクトをビルドし、値を Key 新しいキーに置き換えます。既に開いているキーは、このメソッドの影響を受けません。

適用対象