Läs på engelska Redigera

Dela via


Executor Class

Definition

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

C#
public static class Executor
C#
public sealed class Executor
Inheritance
Executor

Remarks

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

Anteckning

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.

Methods

ExecWait(String, TempFileCollection)

Executes the command using the specified temporary files and waits for the call to return.

ExecWaitWithCapture(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.

ExecWaitWithCapture(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.

ExecWaitWithCapture(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.

ExecWaitWithCapture(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.

Applies to

Produkt Versioner
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10