Execute the Assembly given its file name and supplied evidence.
[Visual Basic] Overloads Public Function ExecuteAssembly( _ ByVal fileName As String, _ ByVal assemblySecurity As Evidence _ ) As Integer [C#] public int ExecuteAssembly( string fileName, Evidence assemblySecurity ); [C++] public: int ExecuteAssembly( String* fileName, Evidence* assemblySecurity ); [JScript] public function ExecuteAssembly( fileName : String, assemblySecurity : Evidence ) : int;
Returns the value returned by the entry point of the Assembly.
The method does not spawn a new process, create a new application domain, or execute the entry point method on a new thread.
AppDomain Class | AppDomain Members | System Namespace | AppDomain.ExecuteAssembly Overload List