Hash(Assembly) 构造函数

定义

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

public:
 Hash(System::Reflection::Assembly ^ assembly);
public Hash (System.Reflection.Assembly assembly);
new System.Security.Policy.Hash : System.Reflection.Assembly -> System.Security.Policy.Hash
Public Sub New (assembly As Assembly)

参数

assembly
Assembly

计算其哈希值的程序集。The assembly for which to compute the hash value.

例外

assembly 参数为 nullThe assembly parameter is null.

assembly 不是运行时 Assembly 对象。assembly is not a run-time Assembly object.

注解

在调用一个属性或方法之前,不会执行哈希值计算。The hash value computation is not performed until one of the properties or methods is called.

适用于