CreateFromParameters Method
CreateFromParameters(RSAParameters)
Creates a new instance of RSAPublicKey from the given
parameters
.
C#
public static RSAPublicKey CreateFromParameters(RSAParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
RSAParameters | parameters | The RSA parameters containing the public key data. |
Returns
A new instance of RSAPublicKey.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the parameters contain private key data. |