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
};
所以,我在哪裏可以找到這些代碼匹配特定的時區?它的任何地方的枚舉?