CngAlgorithm(String) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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
要初始化的演算法名稱。
例外狀況
algorithm
參數為 null
。
algorithm
參數長度為 0 (零)。
備註
類別的 CngAlgorithm 實例會在內部維護 參數所 algorithm
指定的演算法名稱。
此建構函式的主要目的是提供方法,以建立 CngAlgorithm 不是由 類別靜態屬性表示之 CngAlgorithm 演算法類型的物件。 此容量可讓未來的.NET Framework版本、Service Pack 和協力廠商開發人員加入新的演算法,就像目前可用的演算法一樣存取。