Heureka API .NET Documentation
GetPeriodClosestToTreatmentYear(IEnumerable<PeriodRange>,Double) Method



Period ranges to iterate over
Year to search for
Get the treatment year (breakpoint) closest to the specified year
Syntax
'Declaration
 
Public Overloads Shared Function GetPeriodClosestToTreatmentYear( _
   ByVal ranges As IEnumerable(Of PeriodRange), _
   ByVal year As Double _
) As PeriodRange
'Usage
 
Dim ranges As IEnumerable(Of PeriodRange)
Dim year As Double
Dim value As PeriodRange
 
value = PeriodHandler.GetPeriodClosestToTreatmentYear(ranges, year)
public static PeriodRange GetPeriodClosestToTreatmentYear( 
   IEnumerable<PeriodRange> ranges,
   double year
)
public:
static PeriodRange GetPeriodClosestToTreatmentYear( 
   IEnumerable<PeriodRange>^ ranges,
   double year
) 

Parameters

ranges
Period ranges to iterate over
year
Year to search for
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

PeriodHandler Class
PeriodHandler Members
Overload List

Send Feedback