Class Region
Region
Inherited Members
Namespace: Unity.Services.Apis.Relay
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "Region")]
[Preserve]
public class Region
Constructors
Region(string, string)
Initializes a new instance of the Region class.
Declaration
[Preserve]
public Region(string id = null, string description = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | The region ID used in allocation requests. (required). |
| string | description | A human-readable description of the region. It can include geographical information such as the city name or country. (required). |
Properties
Description
A human-readable description of the region. It can include geographical information such as the city name or country.
Declaration
[DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A human-readable description of the region. It can include geographical information such as the city name or country. |
Id
The region ID used in allocation requests.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The region ID used in allocation requests. |