Share via


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。

請參閱

參考

IVsaEngine 介面

Microsoft.Vsa 命名空間