Back to Index

 

Server Component Class: CRFramework.VISControls.VISServerControl

GetParameters(JobName As System.String, AppDomainName As System.String)

The GetParameters method returns a collection called ParameterCollection which contains a collection of Parameter objects that you can use to display a job's available parameters to the user.  

[VB]

Imports CRFramework.VISControls

Dim VIS As VISServerControl

Dim pc As ParameterCollection

Dim p As Parameter

 

VIS = New VISServerControl()

 

VIS.UserName = "administrator"

VIS.Password = "manager"

VIS.ServerName = "localhost"

 

VIS.Connect()

 

pc = VIS.GetParameters("myJob", "SharedDomain")

 

For Each p In pc

    ' Use each p (Parameter) object to show your users the current job Parameters

Next

 

[C#]

using CRFramework.VISControls;

VISServerControl VIS;

ParameterCollection pc;

 

VIS = new VISServerControl();

 

VIS.UserName = "administrator";

VIS.Password = "manager";

VIS.ServerName = "localhost";

 

VIS.Connect();

 

 

pc = VIS.GetParameters("myJob", "SharedDomain");

 

foreach(Parameter p in pc)

{

    // Use each p (Parameter) object to show your users the current job Parameters

}

 


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