This function runs a SCOPE script on the local machine.

Namespace: ScopeClient
Assembly: Scope (in Scope.exe) Version: 10.2.0.0 (10.2.2.0)

Syntax

C#
public static void Run(
	string scopeScriptFileName,
	Dictionary<string, string> parameters,
	bool outputHeader,
	bool catchExceptions,
	string vcName,
	string proxy,
	bool defaultCredential
)
Visual Basic
Public Shared Sub Run ( _
	scopeScriptFileName As String, _
	parameters As Dictionary(Of String, String), _
	outputHeader As Boolean, _
	catchExceptions As Boolean, _
	vcName As String, _
	proxy As String, _
	defaultCredential As Boolean _
)
Visual C++
public:
static void Run(
	String^ scopeScriptFileName, 
	Dictionary<String^, String^>^ parameters, 
	bool outputHeader, 
	bool catchExceptions, 
	String^ vcName, 
	String^ proxy, 
	bool defaultCredential
)

Parameters

scopeScriptFileName
Type: String
The name of the SCOPE script file.
parameters
Type: Dictionary<(Of <(<'String, String>)>)>
This variable is used to pass parameters to the SCOPE script. The key of each entry is the parameter name and the value of each entry is the parameter value. If you don't have any parameters to pass, pass null.
outputHeader
Type: Boolean
Specifies if the header needs to be included in the output file.
catchExceptions
Type: Boolean
Catch the exceptions. (deprecated - has no effect)
vcName
Type: String
Name of the virtual cluster where the dlls and/or views referenced in the script are located.
proxy
Type: String
The proxy value to be used when communicating with the VC. By default, a proxy will not be used.
defaultCredential
Type: Boolean
If the value is true, the username that is currently logged on the machine will be used. There is no need to encode the password.

See Also