DSACryptoServiceProvider 构造函数

定义

初始化 DSACryptoServiceProvider 类的新实例。Initializes a new instance of the DSACryptoServiceProvider class.

重载

DSACryptoServiceProvider()

初始化 DSACryptoServiceProvider 类的新实例。Initializes a new instance of the DSACryptoServiceProvider class.

DSACryptoServiceProvider(Int32)

使用指定的密钥大小初始化 DSACryptoServiceProvider 类的新实例。Initializes a new instance of the DSACryptoServiceProvider class with the specified key size.

DSACryptoServiceProvider(CspParameters)

用加密服务提供程序 (CSP) 的指定参数初始化 DSACryptoServiceProvider 类的新实例。Initializes a new instance of the DSACryptoServiceProvider class with the specified parameters for the cryptographic service provider (CSP).

DSACryptoServiceProvider(Int32, CspParameters)

用加密服务提供程序 (CSP) 的指定密钥大小和参数初始化 DSACryptoServiceProvider 类的新实例。Initializes a new instance of the DSACryptoServiceProvider class with the specified key size and parameters for the cryptographic service provider (CSP).

DSACryptoServiceProvider()

初始化 DSACryptoServiceProvider 类的新实例。Initializes a new instance of the DSACryptoServiceProvider class.

public:
 DSACryptoServiceProvider();
public DSACryptoServiceProvider ();
Public Sub New ()

安全性

SecurityPermission
用于调用非托管代码。for the ability to call unmanaged code. 关联的枚举:UnmanagedCodeAssociated enumeration: UnmanagedCode

另请参阅

DSACryptoServiceProvider(Int32)

使用指定的密钥大小初始化 DSACryptoServiceProvider 类的新实例。Initializes a new instance of the DSACryptoServiceProvider class with the specified key size.

public:
 DSACryptoServiceProvider(int dwKeySize);
public DSACryptoServiceProvider (int dwKeySize);
new System.Security.Cryptography.DSACryptoServiceProvider : int -> System.Security.Cryptography.DSACryptoServiceProvider
Public Sub New (dwKeySize As Integer)

参数

dwKeySize
Int32

不对称算法的密钥的大小(以位为单位)。The size of the key for the asymmetric algorithm in bits.

安全性

SecurityPermission
用于调用非托管代码。for the ability to call unmanaged code. 关联的枚举:UnmanagedCodeAssociated enumeration: UnmanagedCode

另请参阅

DSACryptoServiceProvider(CspParameters)

用加密服务提供程序 (CSP) 的指定参数初始化 DSACryptoServiceProvider 类的新实例。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);
public DSACryptoServiceProvider (System.Security.Cryptography.CspParameters parameters);
new System.Security.Cryptography.DSACryptoServiceProvider : System.Security.Cryptography.CspParameters -> System.Security.Cryptography.DSACryptoServiceProvider
Public Sub New (parameters As CspParameters)

参数

parameters
CspParameters

CSP 的参数。The parameters for the CSP.

安全性

SecurityPermission
用于调用非托管代码。for the ability to call unmanaged code. 关联的枚举:UnmanagedCodeAssociated enumeration: UnmanagedCode

另请参阅

DSACryptoServiceProvider(Int32, CspParameters)

用加密服务提供程序 (CSP) 的指定密钥大小和参数初始化 DSACryptoServiceProvider 类的新实例。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);
public DSACryptoServiceProvider (int dwKeySize, System.Security.Cryptography.CspParameters parameters);
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

加密算法的密钥的大小(以位为单位)。The size of the key for the cryptographic algorithm in bits.

parameters
CspParameters

CSP 的参数。The parameters for the CSP.

异常

无法获取 CSP。The CSP cannot be acquired.

-or-

不能创建密钥。The key cannot be created.

dwKeySize 超出范围。dwKeySize is out of range.

安全性

SecurityPermission
用于调用非托管代码。for the ability to call unmanaged code. 关联的枚举:UnmanagedCodeAssociated enumeration: UnmanagedCode

另请参阅

适用于