DSACryptoServiceProvider 构造函数

定义

初始化 DSACryptoServiceProvider 类的新实例。

重载

DSACryptoServiceProvider()

初始化 DSACryptoServiceProvider 类的新实例。

DSACryptoServiceProvider(Int32)

使用指定的密钥大小初始化 DSACryptoServiceProvider 类的新实例。

DSACryptoServiceProvider(CspParameters)

用加密服务提供程序 (CSP) 的指定参数初始化 DSACryptoServiceProvider 类的新实例。

DSACryptoServiceProvider(Int32, CspParameters)

用加密服务提供程序 (CSP) 的指定密钥大小和参数初始化 DSACryptoServiceProvider 类的新实例。

DSACryptoServiceProvider()

初始化 DSACryptoServiceProvider 类的新实例。

public:
 DSACryptoServiceProvider();
public DSACryptoServiceProvider ();
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public DSACryptoServiceProvider ();
Public Sub New ()
属性

另请参阅

适用于

DSACryptoServiceProvider(Int32)

使用指定的密钥大小初始化 DSACryptoServiceProvider 类的新实例。

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)

参数

dwKeySize
Int32

不对称算法的密钥的大小(以位为单位)。

属性

另请参阅

适用于

DSACryptoServiceProvider(CspParameters)

用加密服务提供程序 (CSP) 的指定参数初始化 DSACryptoServiceProvider 类的新实例。

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
CspParameters

CSP 的参数。

属性

另请参阅

适用于

DSACryptoServiceProvider(Int32, CspParameters)

用加密服务提供程序 (CSP) 的指定密钥大小和参数初始化 DSACryptoServiceProvider 类的新实例。

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)

参数

dwKeySize
Int32

加密算法的密钥的大小(以位为单位)。

parameters
CspParameters

CSP 的参数。

属性

例外

无法获取 CSP。

  • 或 -

无法创建密钥。

dwKeySize 超出范围。

另请参阅

适用于