Click or drag to resize

ExtensionsGetPeriod Method

Get period for schedule.

Namespace:  StockSharp.Messages
Assembly:  StockSharp.Messages (in StockSharp.Messages.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static WorkingTimePeriod GetPeriod(
	this WorkingTime time,
	DateTime date
)

Parameters

time
Type: StockSharp.MessagesWorkingTime
Trading schedule.
date
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