Submit a Scope script to Cosmos. Note that the user must call VC.SetDefaultCredentials()
or VC.Setup() before calling this function.
Namespace: ScopeClientAssembly: Scope (in Scope.exe) Version: 10.2.0.0 (10.2.2.0)
Syntax
C# |
---|
public static JobInfo Submit( SubmitParameters parameters ) |
Visual Basic |
---|
Public Shared Function Submit ( _ parameters As SubmitParameters _ ) As JobInfo |
Visual C++ |
---|
public: static JobInfo^ Submit( SubmitParameters^ parameters ) |
Parameters
- parameters
- Type: ScopeClient..::..SubmitParameters
Parameters
Return Value
JobInfo informationExamples
// 1. Set up authentication
VC.SetDefaultCredentials(myVcName, myProxyName);
// Alternative: VC.Setup(myVcName, myProxyName, myUserName);
// 2. Prepare parameters
SubmitParameters submitParameters = new SubmitParameters(myScopeScriptFileName);
submitParameters.Priority = 1000;
// 3. Submit to Cosmos
JobInfo submitResult = Submit(submitParameters);
// 4. ...
// 5. Profit!
Profit();