共用方式為


IotHubLocationDescription Class

Definition

Public representation of one of the locations where a resource is provisioned.

public class IotHubLocationDescription
public class IotHubLocationDescription : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.IotHub.Models.IotHubLocationDescription>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.IotHub.Models.IotHubLocationDescription>
type IotHubLocationDescription = class
type IotHubLocationDescription = class
    interface IJsonModel<IotHubLocationDescription>
    interface IPersistableModel<IotHubLocationDescription>
Public Class IotHubLocationDescription
Public Class IotHubLocationDescription
Implements IJsonModel(Of IotHubLocationDescription), IPersistableModel(Of IotHubLocationDescription)
Inheritance
IotHubLocationDescription
Implements

Properties

Location

The name of the Azure region.

Role

The role of the region, can be either primary or secondary. The primary region is where the IoT hub is currently provisioned. The secondary region is the Azure disaster recovery (DR) paired region and also the region where the IoT hub can failover to.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<IotHubLocationDescription>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<IotHubLocationDescription>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<IotHubLocationDescription>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<IotHubLocationDescription>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<IotHubLocationDescription>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to