Megosztás a következőn keresztül:


Location Class

Definition

A region in which the Azure Cosmos DB database account is deployed.

public class Location
type Location = class
Public Class Location
Inheritance
Location

Constructors

Location()

Initializes a new instance of the Location class.

Location(String, String, String, String, Nullable<Int32>, Nullable<Boolean>)

Initializes a new instance of the Location class.

Properties

DocumentEndpoint

Gets the connection endpoint for the specific region. Example: https://&amp;lt;accountName&amp;gt;-&amp;lt;locationName&amp;gt;.documents.azure.com:443/

FailoverPriority

Gets or sets the failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.

Id

Gets the unique identifier of the region within the database account. Example: &amp;lt;accountName&amp;gt;-&amp;lt;locationName&amp;gt;.

IsZoneRedundant

Gets or sets flag to indicate whether or not this region is an AvailabilityZone region

LocationName

Gets or sets the name of the region.

ProvisioningState

Methods

Validate()

Validate the object.

Applies to