This function compiles a given SCOPE script locally. This function also sets the vcName, proxy and defaultCredential. This function needs to be used only if the script references to some dll, views, or other resources on the virtual cluster. If the script does not reference any dlls or views from the vc, it is advisable to use Compile(string scopeScriptFileName) function.

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

Syntax

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

Parameters

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.
scopeScriptFileName
Type: String
The name of the SCOPE script file.
parameters
Type: Dictionary<(Of <(<'String, String>)>)>
Parameters to be replaced in the SCOPE script.
compilerOptions
Type: String
Optional compilation options (same as "scope.exe compile command line options).

See Also