Export (0) Print
Expand All

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, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

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

Community Additions

ADD
Show:
© 2014 Microsoft