編輯

共用方式為


localeInfo resource type

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Information about the locale, including the preferred language and country/region, of the signed-in user.

Properties

Property Type Description
locale string A locale representation for the user, which includes the user's preferred language and country/region. For example, "en-us". The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2.
displayName string A name representing the user's locale in natural language, for example, "English (United States)".

JSON representation

The following JSON representation shows the resource type.

{
  "locale": "string",
  "displayName": "string"
}