NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AppDomain.ExecuteAssembly (String, Evidence, Boolean, String[])

Execute the Assembly given its file name and supplied Evidence. The entry point is called with the supplied arguments. Optionally, the Assembly can be shared across application domains.

[Visual Basic]
Overloads Public Function ExecuteAssembly( _
   ByVal fileName As String, _
   ByVal assemblySecurity As Evidence, _
   ByVal shared As Boolean, _
   ByVal args() As String _
) As Integer
[C#]
public int ExecuteAssembly(
   string fileName,
   Evidence assemblySecurity,
   bool shared,
   string[] args
);
[C++]
public: int ExecuteAssembly(
   String* fileName,
   Evidence* assemblySecurity,
   bool shared,
   String* args[]
);
[JScript]
public function ExecuteAssembly(
   fileName : String,
   assemblySecurity : Evidence,
   shared : Boolean,
   args : String[]
) : int;

Parameters

fileName
The name of the file from which the Assembly is to be loaded.
assemblySecurity
The supplied Evidence for the Assembly.
shared
If true, the Assembly is loaded in a form where its JIT-compiled code can be reused by multiple application domains (at a slight cost in code quality).
args
The arguments to the entry point of the Assembly.

Return Value

Returns the value returned by the entry point of the Assembly.

Remarks

The method does not spawn a new process, create a new application domain, or execute the entry point method on a new thread.

See Also

AppDomain Class | AppDomain Members | System Namespace | AppDomain.ExecuteAssembly Overload List