Upraviť

Zdieľať cez


_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.

public:
 int ExecuteAssembly(System::String ^ assemblyFile, System::Security::Policy::Evidence ^ assemblySecurity);
public int ExecuteAssembly (string assemblyFile, System.Security.Policy.Evidence assemblySecurity);
abstract member ExecuteAssembly : string * System.Security.Policy.Evidence -> int
Public Function ExecuteAssembly (assemblyFile As String, assemblySecurity As Evidence) As Integer

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

ExecuteAssembly(String)

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

public:
 int ExecuteAssembly(System::String ^ assemblyFile);
public int ExecuteAssembly (string assemblyFile);
abstract member ExecuteAssembly : string -> int
Public Function ExecuteAssembly (assemblyFile As String) As Integer

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

ExecuteAssembly(String, Evidence, String[])

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

public:
 int ExecuteAssembly(System::String ^ assemblyFile, System::Security::Policy::Evidence ^ assemblySecurity, cli::array <System::String ^> ^ args);
public int ExecuteAssembly (string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args);
abstract member ExecuteAssembly : string * System.Security.Policy.Evidence * string[] -> int
Public Function ExecuteAssembly (assemblyFile As String, assemblySecurity As Evidence, args As String()) As Integer

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