|
Server Component Class: CRFramework.VISControls.VISServerControl
GetJobLogEvents(JobName As System.String, AppDomainName As System.String)
Returns LogEventCollection
The GetJobLogEvents method returns a collection called LogEventCollection which holds a collection of LogEvent objects that you can use to display the job's log entries to the user. Once a job has completed, you can give your user the option to view the job log in your application.
[VB]
Imports CRFramework.VISControls
Dim VIS As VISServerControl |
Dim lec As LogEventCollection |
Dim le As LogEvent |
|
VIS = New VISServerControl() |
|
VIS.UserName = "administrator" |
VIS.Password = "manager" |
VIS.ServerName = "localhost" |
|
VIS.Connect() |
|
lec = VIS.GetJobLogEvents("myJob", "SharedDomain") |
|
For Each le In lec |
' Use each le (LogEvent) object to show your users the log information |
Next |
|
[C#]
using CRFramework.VISControls;
VISServerControl VIS; |
LogEventCollection lec; |
|
VIS = new VISServerControl(); |
|
VIS.UserName = "administrator"; |
VIS.Password = "manager"; |
VIS.ServerName = "localhost"; |
|
VIS.Connect(); |
|
|
lec = VIS.GetJobLogEvents("myJob", "SharedDomain"); |
|
foreach(LogEvent le in lec) |
{ |
// Use each le (LogEvent) object to show your users the log information |
} |
© 2003 - 2007 Relational Solutions, Inc. - All rights reserved