Udostępnij za pośrednictwem


Location Constructors

Definition

Overloads

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.

Location()

Initializes a new instance of the Location class.

public Location ();
Public Sub New ()

Applies to

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

Initializes a new instance of the Location class.

public Location (string id = default, string locationName = default, string documentEndpoint = default, string provisioningState = default, int? failoverPriority = default, bool? isZoneRedundant = default);
new Microsoft.Azure.Management.CosmosDB.Fluent.Models.Location : string * string * string * string * Nullable<int> * Nullable<bool> -> Microsoft.Azure.Management.CosmosDB.Fluent.Models.Location
Public Sub New (Optional id As String = Nothing, Optional locationName As String = Nothing, Optional documentEndpoint As String = Nothing, Optional provisioningState As String = Nothing, Optional failoverPriority As Nullable(Of Integer) = Nothing, Optional isZoneRedundant As Nullable(Of Boolean) = Nothing)

Parameters

id
String

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

locationName
String

The name of the region.

documentEndpoint
String

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

provisioningState
String
failoverPriority
Nullable<Int32>

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.

isZoneRedundant
Nullable<Boolean>

Flag to indicate whether or not this region is an AvailabilityZone region

Applies to