ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.Windows.Core
VBScriptEngine Class
VBScriptEngine Constructor
VBScriptEngine(ISyncInvoker) Constructor
VBScriptEngine(String, ISyncInvoker) Constructor
VBScriptEngine(WindowsScriptEngineFlags, ISyncInvoker) Constructor
VBScriptEngine(String, WindowsScriptEngineFlags, ISyncInvoker) Constructor
VBScriptEngine(String, String, String, WindowsScriptEngineFlags, ISyncInvoker) Constructor

# VBScriptEngine(String, String, String, WindowsScriptEngineFlags, ISyncInvoker) Constructor

Initializes a new VBScript engine instance with the specified programmatic identifier, name, list of supported file name extensions, options, and synchronous invoker.
Namespace: Microsoft.ClearScript.Windows.Core
Assembly: ClearScript.Windows.Core (in ClearScript.Windows.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    protected VBScriptEngine(
    	string progID,
    	string name,
    	string fileNameExtensions,
    	WindowsScriptEngineFlags flags,
    	ISyncInvoker syncInvoker
    )

    Protected Sub New (
    	progID As String,
    	name As String,
    	fileNameExtensions As String,
    	flags As WindowsScriptEngineFlags,
    	syncInvoker As ISyncInvoker
    )

    protected:
    VBScriptEngine(
    	String^ progID,
    	String^ name,
    	String^ fileNameExtensions,
    	WindowsScriptEngineFlags flags,
    	ISyncInvoker^ syncInvoker
    )

    new :
            progID : string *
            name : string *
            fileNameExtensions : string *
            flags : WindowsScriptEngineFlags *
            syncInvoker : ISyncInvoker -> VBScriptEngine

#### Parameters

progID String
  The programmatic identifier (ProgID) of the VBScript engine class.
name String
  A name to associate with the instance. Currently, this name is used only as a label in presentation contexts such as debugger user interfaces.
fileNameExtensions String
  A semicolon-delimited list of supported file name extensions.
flags WindowsScriptEngineFlags
  A value that selects options for the operation.
syncInvoker ISyncInvoker
  An object that enforces thread affinity for the instance.

Remarks
The progID argument can be a class identifier (CLSID) in standard GUID format with braces (e.g., "{F414C260-6AC0-11CF-B6D1-00AA00BBBB58}").
See Also

#### Reference

VBScriptEngine Class
VBScriptEngine Overload
Microsoft.ClearScript.Windows.Core Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft