AssemblyAlgorithmIdAttribute 建構函式

定義

初始化 AssemblyAlgorithmIdAttribute 類別的新執行個體。

多載

AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm)

使用其中一個 AssemblyAlgorithmIdAttribute 成員表示雜湊演算法,以指定的雜湊演算法初始化 AssemblyHashAlgorithm 類別新執行個體。

AssemblyAlgorithmIdAttribute(UInt32)

使用不帶正負號的整數 (Unsigned Integer) 表示雜湊演算法,以指定的雜湊演算法初始化 AssemblyAlgorithmIdAttribute 類別新執行個體。

AssemblyAlgorithmIdAttribute(AssemblyHashAlgorithm)

來源:
AssemblyAlgorithmIdAttribute.cs
來源:
AssemblyAlgorithmIdAttribute.cs
來源:
AssemblyAlgorithmIdAttribute.cs

使用其中一個 AssemblyAlgorithmIdAttribute 成員表示雜湊演算法,以指定的雜湊演算法初始化 AssemblyHashAlgorithm 類別新執行個體。

C#
public AssemblyAlgorithmIdAttribute(System.Configuration.Assemblies.AssemblyHashAlgorithm algorithmId);

參數

algorithmId
AssemblyHashAlgorithm

AssemblyHashAlgorithm 的成員,表示雜湊演算法。

適用於

.NET 10 和其他版本
產品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

AssemblyAlgorithmIdAttribute(UInt32)

來源:
AssemblyAlgorithmIdAttribute.cs
來源:
AssemblyAlgorithmIdAttribute.cs
來源:
AssemblyAlgorithmIdAttribute.cs

重要

此 API 不符合 CLS 規範。

使用不帶正負號的整數 (Unsigned Integer) 表示雜湊演算法,以指定的雜湊演算法初始化 AssemblyAlgorithmIdAttribute 類別新執行個體。

C#
[System.CLSCompliant(false)]
public AssemblyAlgorithmIdAttribute(uint algorithmId);

參數

algorithmId
UInt32

不帶正負號的整數,表示雜湊演算法。

屬性

適用於

.NET 10 和其他版本
產品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1