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,
	string userName,
	string scopeScriptFileName
)
Visual Basic
Public Shared Sub Compile ( _
	vcName As String, _
	proxy As String, _
	userName As String, _
	scopeScriptFileName As String _
)
Visual C++
public:
static void Compile(
	String^ vcName, 
	String^ proxy, 
	String^ userName, 
	String^ scopeScriptFileName
)

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.
userName
Type: String
The username in Domain\username format. If the username is null, the default encoded account will be used.
scopeScriptFileName
Type: String
The name of the SCOPE script file.

See Also