ADO.NET Provider for Microsoft Exchange

Build 26.0.9655

Office365Environment

Specifies the Office 365 environment to use for Graph API requests when using the MSGraph schema.

Possible Values

NONE, GLOBAL, CHINA, USGOVTGCC, USGOVTDOD

Data Type

string

Default Value

"NONE"

Remarks

Use this property to select the appropriate Office 365 environment for your account. When set to NONE (the default), the Graph API endpoint is derived automatically from AzureEnvironment.

If your Office 365 account resides in a sovereign or restricted environment and you need to override the endpoint independently of AzureEnvironment, set this property accordingly.

Available values:

  • NONE: Uses the Graph API endpoint that matches the value of AzureEnvironment.
  • GLOBAL: Default environment for commercial Microsoft 365 accounts.
  • CHINA: Used for Microsoft 365 accounts hosted in the China cloud environment.
  • USGOVTGCC: U.S. Government Community Cloud (GCC). Maps to the USGOVT Graph API endpoint.
  • USGOVTDOD: U.S. Department of Defense environment.

This property is useful when connecting to region-specific or government-restricted Office 365 tenants.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655