Executor 类

定义

提供用于调用编译器的命令执行函数。 无法继承此类。

public ref class Executor abstract sealed
public ref class Executor sealed
public static class Executor
public sealed class Executor
type Executor = class
Public Class Executor
Public NotInheritable Class Executor
继承
Executor

注解

此类提供可用于从实现调用编译器 ICodeCompiler 的方法集合。

Note

此类包含应用于所有成员的类级别的链接需求。 当即时调用方没有完全信任权限时,将引发 A SecurityException

方法

名称 说明
ExecWait(String, TempFileCollection)

使用指定的临时文件执行命令,并等待调用返回。

ExecWaitWithCapture(IntPtr, String, String, TempFileCollection, String, String)

使用指定的用户令牌、当前目录和临时文件执行指定的命令;然后等待调用返回,将编译器的输出和错误信息存储在指定的字符串中。

ExecWaitWithCapture(IntPtr, String, TempFileCollection, String, String)

使用指定的用户令牌和临时文件执行指定的命令,并等待调用返回,将编译器的输出和错误信息存储在指定的字符串中。

ExecWaitWithCapture(String, String, TempFileCollection, String, String)

使用指定的当前目录和临时文件执行指定的命令,并等待调用返回,将编译器的输出和错误信息存储在指定的字符串中。

ExecWaitWithCapture(String, TempFileCollection, String, String)

使用指定的临时文件执行指定的命令,并等待调用返回,在指定的字符串中存储编译器的输出和错误信息。

适用于