0
我试着安排服务预约,并与UserTimeZoneCode property的AppointmentRequest type混淆。根据MSDN文章,这是int
属性。如何设置AppointmentRequest.UserTimeZoneCode属性?
可惜的是,也有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
};
所以,我在哪里可以找到这些代码匹配特定的时区?它的任何地方的枚举?