BusinessCalendarServiceIsWorkTimeAsync - метод |
Интерфейс API бизнес календаря.
Пространство имён:
Tessa.BusinessCalendar
Сборка:
Tessa (в Tessa.dll) Версия: 3.5.0.19
Синтаксис public Task<BusinessCalendarTimeType> IsWorkTimeAsync(
DateTime dateTime,
TimeSpan? zoneOffset = null,
CancellationToken cancellationToken = default
)
Public Function IsWorkTimeAsync (
dateTime As DateTime,
Optional zoneOffset As TimeSpan? = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of BusinessCalendarTimeType)
public:
virtual Task<BusinessCalendarTimeType>^ IsWorkTimeAsync(
DateTime dateTime,
Nullable<TimeSpan> zoneOffset = nullptr,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract IsWorkTimeAsync :
dateTime : DateTime *
?zoneOffset : Nullable<TimeSpan> *
?cancellationToken : CancellationToken
(* Defaults:
let _zoneOffset = defaultArg zoneOffset null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<BusinessCalendarTimeType>
override IsWorkTimeAsync :
dateTime : DateTime *
?zoneOffset : Nullable<TimeSpan> *
?cancellationToken : CancellationToken
(* Defaults:
let _zoneOffset = defaultArg zoneOffset null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<BusinessCalendarTimeType>
Параметры
- dateTime
- Тип: SystemDateTime
- zoneOffset (Optional)
- Тип: SystemNullableTimeSpan
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskBusinessCalendarTimeTypeРеализации
IBusinessCalendarServiceIsWorkTimeAsync(DateTime, NullableTimeSpan, CancellationToken)См. также