IVsaEngine.Compile 方法
使脚本引擎编译现有的源状态。
命名空间: Microsoft.Vsa
程序集: Microsoft.Vsa(在 Microsoft.Vsa.dll 中)
语法
声明
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Function Compile As Boolean
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
bool Compile()
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
bool Compile()
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
abstract Compile : unit -> bool
function Compile() : boolean
返回值
类型:Boolean
成功编译时返回 TRUE,这指示可以对新编译的程序集调用 Run 方法。如果编译失败,则返回 FALSE。