_AppDomain.ExecuteAssembly 方法

定义

为 COM 对象提供对 ExecuteAssembly 方法的与版本无关的访问。Provides COM objects with version-independent access to the ExecuteAssembly method.

重载

ExecuteAssembly(String, Evidence)

为 COM 对象提供对 ExecuteAssembly(String, Evidence) 方法重载的与版本无关的访问权限。Provides COM objects with version-independent access to the ExecuteAssembly(String, Evidence) method overload.

ExecuteAssembly(String)

为 COM 对象提供对 ExecuteAssembly(String) 方法重载的与版本无关的访问权限。Provides COM objects with version-independent access to the ExecuteAssembly(String) method overload.

ExecuteAssembly(String, Evidence, String[])

为 COM 对象提供对 ExecuteAssembly(String, Evidence, String[]) 方法重载的与版本无关的访问权限。Provides COM objects with version-independent access to the ExecuteAssembly(String, Evidence, String[]) method overload.

ExecuteAssembly(String, Evidence)

为 COM 对象提供对 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

参数

assemblyFile
String

包含要执行程序集的文件的名称。The name of the file that contains the assembly to execute.

assemblySecurity
Evidence

用于加载程序集的证据。Evidence for loading the assembly.

返回

程序集的入口点返回的值。The value returned by the entry point of the assembly.

注解

请参阅AppDomain.ExecuteAssembly(String, Evidence)方法重载。See the AppDomain.ExecuteAssembly(String, Evidence) method overload.

ExecuteAssembly(String)

为 COM 对象提供对 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

参数

assemblyFile
String

包含要执行程序集的文件的名称。The name of the file that contains the assembly to execute.

返回

程序集的入口点返回的值。The value returned by the entry point of the assembly.

注解

请参阅AppDomain.ExecuteAssembly(String)方法重载。See the AppDomain.ExecuteAssembly(String) method overload.

ExecuteAssembly(String, Evidence, String[])

为 COM 对象提供对 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

参数

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.

返回

程序集的入口点返回的值。The value returned by the entry point of the assembly.

注解

请参阅AppDomain.ExecuteAssembly(String, Evidence, String[])方法重载。See the AppDomain.ExecuteAssembly(String, Evidence, String[]) method overload.

适用于