Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Executor Class

Executor Class

Provides command execution functions for invoking compilers. This class cannot be inherited.

System.Object
  System.CodeDom.Compiler.Executor

Namespace:  System.CodeDom.Compiler
Assembly:  System (in System.dll)

[PermissionSetAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
public static class Executor

The Executor type exposes the following members.

  NameDescription
Public methodStatic memberExecWaitExecutes the command using the specified temporary files and waits for the call to return.
Public methodStatic memberExecWaitWithCapture(String, TempFileCollection, String, String)Executes the specified command using the specified temporary files and waits for the call to return, storing output and error information from the compiler in the specified strings.
Public methodStatic memberExecWaitWithCapture(IntPtr, String, TempFileCollection, String, String)Executes the specified command using the specified user token and temporary files, and waits for the call to return, storing output and error information from the compiler in the specified strings.
Public methodStatic memberExecWaitWithCapture(String, String, TempFileCollection, String, String)Executes the specified command using the specified current directory and temporary files, and waits for the call to return, storing output and error information from the compiler in the specified strings.
Public methodStatic memberExecWaitWithCapture(IntPtr, String, String, TempFileCollection, String, String)Executes the specified command using the specified user token, current directory, and temporary files; then waits for the call to return, storing output and error information from the compiler in the specified strings.
Top

This class provides a collection of methods that can be used to invoke a compiler, typically from an ICodeCompiler implementation.

NoteNote

This class contains a link demand at the class level that applies to all members. A SecurityException is thrown when the immediate caller does not have full-trust permission. For more information, see Link Demands.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft