dotnetCHARTING Send comments on this topic.
CalendarPattern Constructor(TimeInterval,TimeInterval,Boolean[])
See Also  Example
dotnetCHARTING Namespace > CalendarPattern Class > CalendarPattern Constructor : CalendarPattern Constructor(TimeInterval,TimeInterval,Boolean[])


mappedTimeUnit
wholeTimeUnit
timePattern
Initializes a new instance of the CalendarPattern class with time units and a pattern.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal mappedTimeUnit As TimeInterval, _
   ByVal wholeTimeUnit As TimeInterval, _
   ByVal timePattern() As Boolean _
)
Visual Basic (Usage)Copy Code
Dim mappedTimeUnit As TimeInterval
Dim wholeTimeUnit As TimeInterval
Dim timePattern() As Boolean
 
Dim instance As CalendarPattern(mappedTimeUnit, wholeTimeUnit, timePattern)
C# 
public CalendarPattern( 
   TimeInterval mappedTimeUnit,
   TimeInterval wholeTimeUnit,
   bool[] timePattern
)

Parameters

mappedTimeUnit
wholeTimeUnit
timePattern

Example

This instantiates a new CallendarPattern of a week marking the saturday and sunday. It uses the PatternFromString method to simplify adding a pattern by using a string.
C#Copy Code
CalendarPattern newPattern = new CalendarPattern(TimeInterval.Day,TimeInterval.Week,CalendarPattern.PatternFromString("1000001"));
    

See Also

© 2018 All Rights Reserved.