无法获取Iana格式的支持时区

问题描述 投票:0回答:1

尝试使用此代码从MS Graph获取Iana格式的受支持时区

var timeZones = await graphServiceClient
    .Me
    .Outlook
    .SupportedTimeZones(TimeZoneStandard.Iana)
    .Request()
    .GetAsync();

我收到此错误

The parameter 'TimeZoneStandard=Iana' is not in scope.

没有TimeZoneStandard.Iana参数成功进行相同的呼叫。不支持TimeZoneStandard.Iana吗?

microsoft-graph outlook-restapi
1个回答
0
投票

这里给出参数的方式不合适。您需要将参数指定为(microsoft.graph.timeZoneStandard'Iana'),如下图所示。

Please check this image

请参阅此document以获取更好的理解。

© www.soinside.com 2019 - 2024. All rights reserved.