Прочетете на английски Редактиране

Споделяне чрез


_AppDomain.ExecuteAssembly Method

Definition

Provides COM objects with version-independent access to the ExecuteAssembly method.

Overloads

ExecuteAssembly(String, Evidence)

Provides COM objects with version-independent access to the ExecuteAssembly(String, Evidence) method overload.

ExecuteAssembly(String)

Provides COM objects with version-independent access to the ExecuteAssembly(String) method overload.

ExecuteAssembly(String, Evidence, String[])

Provides COM objects with version-independent access to the ExecuteAssembly(String, Evidence, String[]) method overload.

ExecuteAssembly(String, Evidence)

Provides COM objects with version-independent access to the ExecuteAssembly(String, Evidence) method overload.

C#
public int ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity);

Parameters

assemblyFile
String

The name of the file that contains the assembly to execute.

assemblySecurity
Evidence

Evidence for loading the assembly.

Returns

The value returned by the entry point of the assembly.

Remarks

See the AppDomain.ExecuteAssembly(String, Evidence) method overload.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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

ExecuteAssembly(String)

Provides COM objects with version-independent access to the ExecuteAssembly(String) method overload.

C#
public int ExecuteAssembly(string assemblyFile);

Parameters

assemblyFile
String

The name of the file that contains the assembly to execute.

Returns

The value returned by the entry point of the assembly.

Remarks

See the AppDomain.ExecuteAssembly(String) method overload.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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

ExecuteAssembly(String, Evidence, String[])

Provides COM objects with version-independent access to the ExecuteAssembly(String, Evidence, String[]) method overload.

C#
public int ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args);

Parameters

assemblyFile
String

The name of the file that contains the assembly to execute.

assemblySecurity
Evidence

The supplied evidence for the assembly.

args
String[]

The arguments to the entry point of the assembly.

Returns

The value returned by the entry point of the assembly.

Remarks

See the AppDomain.ExecuteAssembly(String, Evidence, String[]) method overload.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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