Executor 類別

定義

提供叫用 (Invoke) 編輯器的命令執行函式。Provides command execution functions for invoking compilers. 這個類別無法被繼承。This class cannot be inherited.

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

備註

這個類別會提供可用來叫用編譯器的方法集合,通常是從ICodeCompiler實作為執行。This class provides a collection of methods that can be used to invoke a compiler, typically from an ICodeCompiler implementation.

注意

此類別包含套用至所有成員之類別層級的連結要求。This class contains a link demand at the class level that applies to all members. 當立即呼叫端沒有完全信任許可權時,就會擲回。SecurityExceptionA SecurityException is thrown when the immediate caller does not have full-trust permission. 如需詳細資訊,請參閱連結需求For more information, see Link Demands.

方法

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.

安全性

LinkDemand
針對立即呼叫者的完全信任的。for full trust for the immediate caller. 此成員無法由部分信任程式碼使用。This class cannot be used by partially trusted code.

適用於