With.JScriptWith(Object, VsaEngine) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過將陳述句區塊加入作用域堆疊來建立預設物件 with 。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
static System::Object ^ JScriptWith(System::Object ^ withOb, Microsoft::JScript::Vsa::VsaEngine ^ engine);
public static object JScriptWith(object withOb, Microsoft.JScript.Vsa.VsaEngine engine);
static member JScriptWith : obj * Microsoft.JScript.Vsa.VsaEngine -> obj
Public Shared Function JScriptWith (withOb As Object, engine As VsaEngine) As Object
參數
- withOb
- Object
預設物件。
- engine
- VsaEngine
這是對腳本引擎的參考。
傳回
withOb 被轉換成一個物件。