【发布时间】:2012-12-21 11:51:55
【问题描述】:
我已尝试安排服务预约,但对 UserTimeZoneCode property 和 AppointmentRequest type 感到困惑。根据 MSDN 文章,这是int 属性。
不幸的是,official sample code 中缺少信息(只是花哨的“幻数”):
// Create the appointment request.
AppointmentRequest appointmentReq = new AppointmentRequest
{
...
// The search window describes the time when the resouce can be scheduled.
// It must be set.
SearchWindowStart = DateTime.Now.ToUniversalTime(),
SearchWindowEnd = DateTime.Now.AddDays(7).ToUniversalTime(),
UserTimeZoneCode = 1
};
那么,我在哪里可以找到与特定时区匹配的代码?任何地方都有它的枚举吗?
【问题讨论】:
标签: sdk timezone crm microsoft-dynamics