IVsaEngine.Compile 方法

定义

使脚本引擎编译现有的源状态。Causes the script engine to compile the existing source state.

public:
 bool Compile();
public bool Compile ();
abstract member Compile : unit -> bool
Public Function Compile () As Boolean

返回

Boolean

成功编译时,返回 true,这表示可以在新编译的程序集上调用 Run() 方法。true on successful compilation, indicating that the Run() method can be called on the newly compiled assembly. 如果编译失败,则返回 falsefalse if the compilation failed.

适用于