Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DSACryptoServiceProvider Constructor (Int32, CspParameters^)

 

Initializes a new instance of the DSACryptoServiceProvider class with the specified key size and parameters for the cryptographic service provider (CSP).

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public:
DSACryptoServiceProvider(
	int dwKeySize,
	CspParameters^ parameters
)

Parameters

dwKeySize
Type: System::Int32

The size of the key for the cryptographic algorithm in bits.

parameters
Type: System.Security.Cryptography::CspParameters^

The parameters for the CSP.

Exception Condition
CryptographicException

The CSP cannot be acquired.

-or-

The key cannot be created.

ArgumentOutOfRangeException

dwKeySize is out of range.

SecurityPermission

for the ability to call unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft