Click or drag to resize

ExtensionsGetPeriod Method

Get period for schedule.

Namespace:  StockSharp.Messages
Assembly:  StockSharp.Messages (in StockSharp.Messages.dll) Version: (5.0.0)
public static WorkingTimePeriod GetPeriod(
	this WorkingTime time,
	DateTime date


Type: StockSharp.MessagesWorkingTime
Trading schedule.
Type: SystemDateTime
The date in time for search of appropriate period.

Return Value

Type: WorkingTimePeriod
The schedule period. If no period is appropriate, is returned.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WorkingTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also