CalendarPattern Constructor(TimeInterval,TimeInterval,Boolean[])
Initializes a new instance of the CalendarPattern class with time units and a pattern.
Syntax
'Declaration Public Function New( _ ByVal mappedTimeUnit As TimeInterval, _ ByVal wholeTimeUnit As TimeInterval, _ ByVal timePattern() As Boolean _ )
'Usage Dim mappedTimeUnit As TimeInterval Dim wholeTimeUnit As TimeInterval Dim timePattern() As Boolean Dim instance As New CalendarPattern(mappedTimeUnit, wholeTimeUnit, timePattern)
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.
CalendarPattern newPattern = new CalendarPattern(TimeInterval.Day,TimeInterval.Week,CalendarPattern.PatternFromString("1000001"));
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