DSACryptoServiceProvider Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DSACryptoServiceProvider class.
Overloads
DSACryptoServiceProvider() |
Initializes a new instance of the DSACryptoServiceProvider class. |
DSACryptoServiceProvider(Int32) |
Initializes a new instance of the DSACryptoServiceProvider class with the specified key size. |
DSACryptoServiceProvider(CspParameters) |
Initializes a new instance of the DSACryptoServiceProvider class with the specified parameters for the cryptographic service provider (CSP). |
DSACryptoServiceProvider(Int32, CspParameters) |
Initializes a new instance of the DSACryptoServiceProvider class with the specified key size and parameters for the cryptographic service provider (CSP). |
DSACryptoServiceProvider()
Initializes a new instance of the DSACryptoServiceProvider class.
public:
DSACryptoServiceProvider();
public DSACryptoServiceProvider ();
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public DSACryptoServiceProvider ();
Public Sub New ()
- Attributes
See also
Applies to
DSACryptoServiceProvider(Int32)
Initializes a new instance of the DSACryptoServiceProvider class with the specified key size.
public:
DSACryptoServiceProvider(int dwKeySize);
public DSACryptoServiceProvider (int dwKeySize);
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public DSACryptoServiceProvider (int dwKeySize);
new System.Security.Cryptography.DSACryptoServiceProvider : int -> System.Security.Cryptography.DSACryptoServiceProvider
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
new System.Security.Cryptography.DSACryptoServiceProvider : int -> System.Security.Cryptography.DSACryptoServiceProvider
Public Sub New (dwKeySize As Integer)
Parameters
- dwKeySize
- Int32
The size of the key for the asymmetric algorithm in bits.
- Attributes
See also
Applies to
DSACryptoServiceProvider(CspParameters)
Initializes a new instance of the DSACryptoServiceProvider class with the specified parameters for the cryptographic service provider (CSP).
public:
DSACryptoServiceProvider(System::Security::Cryptography::CspParameters ^ parameters);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public DSACryptoServiceProvider (System.Security.Cryptography.CspParameters? parameters);
public DSACryptoServiceProvider (System.Security.Cryptography.CspParameters parameters);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSACryptoServiceProvider : System.Security.Cryptography.CspParameters -> System.Security.Cryptography.DSACryptoServiceProvider
new System.Security.Cryptography.DSACryptoServiceProvider : System.Security.Cryptography.CspParameters -> System.Security.Cryptography.DSACryptoServiceProvider
Public Sub New (parameters As CspParameters)
Parameters
- parameters
- CspParameters
The parameters for the CSP.
- Attributes
See also
Applies to
DSACryptoServiceProvider(Int32, CspParameters)
Initializes a new instance of the DSACryptoServiceProvider class with the specified key size and parameters for the cryptographic service provider (CSP).
public:
DSACryptoServiceProvider(int dwKeySize, System::Security::Cryptography::CspParameters ^ parameters);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public DSACryptoServiceProvider (int dwKeySize, System.Security.Cryptography.CspParameters? parameters);
public DSACryptoServiceProvider (int dwKeySize, System.Security.Cryptography.CspParameters parameters);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
new System.Security.Cryptography.DSACryptoServiceProvider : int * System.Security.Cryptography.CspParameters -> System.Security.Cryptography.DSACryptoServiceProvider
new System.Security.Cryptography.DSACryptoServiceProvider : int * System.Security.Cryptography.CspParameters -> System.Security.Cryptography.DSACryptoServiceProvider
Public Sub New (dwKeySize As Integer, parameters As CspParameters)
Parameters
- dwKeySize
- Int32
The size of the key for the cryptographic algorithm in bits.
- parameters
- CspParameters
The parameters for the CSP.
- Attributes
Exceptions
dwKeySize
is out of range.