JAMS Developer Guide
FindOptimized Method


MVPSI.JAMS Namespace > IScheduleWCF Interface : FindOptimized Method
The IScheduleSQL interface can only be called by JAMS, use JAMS.Schedule.Find
Syntax
'Declaration
 
<System.ServiceModel.OperationContractAttribute()>
<System.ServiceModel.FaultContractAttribute(DetailType=MVPSI.JAMS.JAMSException, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=False)>
Function FindOptimized( _
   ByVal jobID As System.Integer, _
   ByVal startDate As System.Date, _
   ByVal endDate As System.Date, _
   ByVal options As Schedule.Options _
) As System.Threading.Tasks.Task(Of ICollection(Of ScheduleEntry))
'Usage
 
Dim instance As IScheduleWCF
Dim jobID As System.Integer
Dim startDate As System.Date
Dim endDate As System.Date
Dim options As Schedule.Options
Dim value As System.Threading.Tasks.Task(Of ICollection(Of ScheduleEntry))
 
value = instance.FindOptimized(jobID, startDate, endDate, options)
[System.ServiceModel.OperationContract()]
[System.ServiceModel.FaultContract(DetailType=MVPSI.JAMS.JAMSException, 
   Action="", 
   Name="", 
   Namespace="", 
   ProtectionLevel=ProtectionLevel.None, 
   HasProtectionLevel=false)]
System.Threading.Tasks.Task<ICollection<ScheduleEntry>> FindOptimized( 
   System.int jobID,
   System.DateTime startDate,
   System.DateTime endDate,
   Schedule.Options options
)

Parameters

jobID
startDate
endDate
options
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IScheduleWCF Interface
IScheduleWCF Members