IEExecuteRemote.ExecuteAsAssembly(String, Evidence, Byte[], AssemblyHashAlgorithm) 方法
定义
通过给定程序集文件名或路径、安全证据、哈希值及哈希算法来加载程序集和调用入口点。Loads an assembly and calls the entry point, given its file name or path, security evidence, hash value, and hash algorithm.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
int ExecuteAsAssembly(System::String ^ file, System::Security::Policy::Evidence ^ evidence, cli::array <System::Byte> ^ hash, System::Configuration::Assemblies::AssemblyHashAlgorithm id);
public int ExecuteAsAssembly (string file, System.Security.Policy.Evidence evidence, byte[] hash, System.Configuration.Assemblies.AssemblyHashAlgorithm id);
member this.ExecuteAsAssembly : string * System.Security.Policy.Evidence * byte[] * System.Configuration.Assemblies.AssemblyHashAlgorithm -> int
Public Function ExecuteAsAssembly (file As String, evidence As Evidence, hash As Byte(), id As AssemblyHashAlgorithm) As Integer
参数
- file
- String
包含程序集清单的文件的名称或路径。The name or path of the file that contains the manifest of the assembly.
- evidence
- Evidence
用于加载程序集的证据。Evidence for loading the assembly.
- hash
- Byte[]
计算所得的哈希代码的值。The value of the computed hash code.
用于对文件执行哈希操作以及生成强名称的哈希算法。The hash algorithm that was used to hash files and to generate the strong name.
返回
加载的程序集。The loaded assembly.