AppDomain.ExecuteAssembly Method (String, Evidence, String, Byte, AssemblyHashAlgorithm)
Note: This API is now obsolete. The non-obsolete alternative is ExecuteAssembly(String, String, Byte, AssemblyHashAlgorithm).
Executes the assembly contained in the specified file, using the specified evidence, arguments, hash value, and hash algorithm.
Assembly: mscorlib (in mscorlib.dll)
[<ObsoleteAttribute("Methods which use evidence to sandbox are obsolete and will be removed in a future release of the .NET Framework. Please use an overload of ExecuteAssembly which does not take an Evidence parameter. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>] member ExecuteAssembly : assemblyFile:string * assemblySecurity:Evidence * args:string * hashValue:byte * hashAlgorithm:AssemblyHashAlgorithm -> int
- Type: System.String
The name of the file that contains the assembly to execute.
- Type: System.Security.Policy.Evidence
The supplied evidence for the assembly.
- Type: System.String
The arguments to the entry point of the assembly.
- Type: System.Byte
Represents the value of the computed hash code.
- Type: System.Configuration.Assemblies.AssemblyHashAlgorithm
Represents the hash algorithm used by the assembly manifest.
Return ValueType: System.Int32
The value returned by the entry point of the assembly.
assemblyFile is a null reference (Nothing in Visual Basic).
assemblyFile is not found.
assemblyFile is not a valid assembly.
Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version.
The operation is attempted on an unloaded application domain.
An assembly or module was loaded twice with two different evidences.
assemblySecurity is not a null reference (Nothing in Visual Basic). When legacy CAS policy is not enabled, assemblySecurity should be a null reference (Nothing in Visual Basic).
The specified assembly has no entry point.
The assembly begins executing at the entry point specified in the .NET Framework header.
This method does not create a new process or application domain, and it does not execute the entry point method on a new thread.
to load an assembly with evidence. Associated enumeration: SecurityPermissionFlag.ControlEvidence.
for reading a URI that does not begin with "file://".
to execute a console application. Associated enumeration: PermissionState.Unrestricted.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.