Share via


MapsCorsRule Class

Definition

Specifies a CORS rule for the Map Account.

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

Constructors

MapsCorsRule(IEnumerable<String>)

Initializes a new instance of MapsCorsRule.

Properties

AllowedOrigins

Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MapsCorsRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MapsCorsRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MapsCorsRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MapsCorsRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MapsCorsRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to