語言

Try.PushHandlerScope(VsaEngine, String, Int32) 方法

定義

建立一個新的 BlockScope 區塊物件 try ,並將其推送到全域範圍堆疊。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static void PushHandlerScope(Microsoft::JScript::Vsa::VsaEngine ^ engine, System::String ^ id, int scopeId);
public static void PushHandlerScope(Microsoft.JScript.Vsa.VsaEngine engine, string id, int scopeId);
static member PushHandlerScope : Microsoft.JScript.Vsa.VsaEngine * string * int -> unit
Public Shared Sub PushHandlerScope (engine As VsaEngine, id As String, scopeId As Integer)

參數

engine
VsaEngine

這是對腳本引擎的參考。

id
String

區塊範圍 try 的名稱。

scopeId
Int32

區塊範圍 try 的 ID。

適用於