Redigera

Dela via


IEExecuteRemote.ExecuteAsAssembly Method

Definition

Loads an assembly and calls the entry point, given its file name or path, security evidence, hash value, and hash algorithm.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

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.

id
AssemblyHashAlgorithm

The hash algorithm that was used to hash files and to generate the strong name.

Returns

The loaded assembly.

Applies to