|
Server Component Class: CRFramework.VISControls.VISServerControl
ClearParameters(JobName As System.String, AppDomainName As System.String)
Returns System.Boolean
The ClearParameters method allows you to clear the Parameters for a job. Use this method carefully however, because it physically removes all parameters associated with a job. If you neglect to reset the parameters, your job may not run correctly. It is not necessary to Clear the parameters prior to setting the their values, it is simply available to give you the flexibility to have different sets of parameters available whenever necessary.
[VB]
Imports CRFramework.VISControls
Dim VIS As VISServerControl |
|
VIS = New VISServerControl() |
|
VIS.UserName = "administrator" |
VIS.Password = "manager" |
VIS.ServerName = "localhost" |
|
VIS.Connect() |
|
VIS.ClearParameters("myJob", "SharedDomain) |
VIS.SetParameterValue("myJob", "SharedDomain", "DATEFROM", "01/01/2003") |
VIS.SetParameterValue("myJob", "SharedDomain", "DATETO", "12/31/2003") |
|
VIS.RunJob("myJob", "SharedDomain") |
[C#]
using CRFramework.VISControls;
VISServerControl VIS; |
|
VIS = new VISServerControl(); |
|
VIS.UserName = "administrator"; |
VIS.Password = "manager"; |
VIS.ServerName = "localhost"; |
|
VIS.Connect(); |
|
VIS.ClearParameters("myJob", "SharedDomain); |
VIS.SetParameterValue("myJob", "SharedDomain", "DATEFROM", "01/01/2003"); |
VIS.SetParameterValue("myJob", "SharedDomain", "DATETO", "12/31/2003"); |
|
VIS.RunJob("myJob", "SharedDomain"); |
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved