region 属性表示组织的 或用户的区域。 对于具有多geo 许可证的用户,属性包含用户的区域 ((如果可用) )。 对于没有多geo 许可证的用户,属性包含组织的区域。
区域值可以是 Teams 有效负载支持的任何区域。 可能的值为:Americas、、Europe and MiddleEastAsia Pacific、SwitzerlandGermanyCanadaFranceBrazilAustraliaUAEIndiaJapanUnited KingdomSingaporeSouth AfricaNorwaySwedenQatarItalySpainIsraelPolandUSGov Community CloudSouth KoreaMexico、USGov Community Cloud High、、 USGov Department of Defense和 。China
区域设置属性表示用户在 Microsoft Teams 中选择的位置,它不遵循 Office 的区域设置。 用户的区域设置由其首选语言和国家或地区表示。 例如,en-us。 语言组件遵循 ISO 639-1 中定义的两个字母代码,国家/地区组件遵循 ISO 3166-1 alpha-2 中定义的两个字母代码。
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Teamwork.GetAsync();
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
//other-imports
)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
teamwork, err := graphClient.Teamwork().Get(context.Background(), nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
Teamwork result = graphClient.teamwork().get();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
result = await graph_client.teamwork.get()