SetKey()

DSASignatureFormatter::SetKey(SharedPtr<AsymmetricAlgorithm>) method

Sets key to use for signing.

void System::Security::Cryptography::DSASignatureFormatter::SetKey(SharedPtr<AsymmetricAlgorithm> key) override

Arguments

ParameterTypeDescription
keySharedPtr<AsymmetricAlgorithm>DSA algorithm that holds the private key.

Exceptions

ExceptionDescription
ArgumentNullExceptionIf key is null.
InvalidCastExceptionIf key is not a DSA algorithm.

See Also