CngAlgorithm(String) 构造函数

定义

初始化 CngAlgorithm 类的新实例。

public:
 CngAlgorithm(System::String ^ algorithm);
public CngAlgorithm(string algorithm);
new System.Security.Cryptography.CngAlgorithm : string -> System.Security.Cryptography.CngAlgorithm
Public Sub New (algorithm As String)

参数

algorithm
String

要初始化的算法的名称。

例外

参数 algorithmnull.

参数 algorithm 长度为 0(零)。

注解

类的 CngAlgorithm 实例在内部维护由 algorithm 参数指定的算法名称。

此构造函数的主要用途是提供一种方法,用于为不是由类的静态属性表示的CngAlgorithm算法类型创建CngAlgorithm对象。 此容量使将来.NET框架版本、Service Pack 和第三方开发人员能够添加新的算法,这些算法可以像当前可用的算法一样进行访问。

适用于