Back to Index

 

Server Component Class: CRFramework.VISControls.VISServerControl

GetJobs(AppDomainName As System.String)

The GetJobs method returns a collection called JobStatusCollection which contains a collection of JobStatus objects that you can use to display all of the jobs in an Application Domain, as well as the current status of each job.

[VB]

Imports CRFramework.VISControls

Dim VIS As VISServerControl

Dim jsc As JobStatusCollection

Dim js As JobStatus

 

VIS = New VISServerControl()

 

VIS.UserName = "administrator"

VIS.Password = "manager"

VIS.ServerName = "localhost"

 

VIS.Connect()

 

jsc = VIS.GetJobs("SharedDomain")

 

For Each js In jsc

    ' Use each js (JobStatus) object to show your users all of the jobs in an application domain

Next

 

[C#]

using CRFramework.VISControls;

VISServerControl VIS;

JobStatusCollection jsc;

 

VIS = new VISServerControl();

 

VIS.UserName = "administrator";

VIS.Password = "manager";

VIS.ServerName = "localhost";

 

VIS.Connect();

 

 

jsc = VIS.GetJobs("SharedDomain");

 

foreach(JobStatus js in jsc)

{

    // Use each js (JobStatus) object to show your users all of the jobs in an application domain

}

 


© 2003 - 2007 Relational Solutions, Inc. - All rights reserved