Share via


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

定义

try 块创建一个新的 BlockScope 对象,并将其推送到全局范围堆栈上。

此 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。

适用于