Try.PushHandlerScope(VsaEngine, String, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新的 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。