ArmMapsModelFactory.MapsCorsRule(IEnumerable<String>) Method

Definition

Specifies a CORS rule for the Map Account.

public static Azure.ResourceManager.Maps.Models.MapsCorsRule MapsCorsRule(System.Collections.Generic.IEnumerable<string> allowedOrigins = default);
static member MapsCorsRule : seq<string> -> Azure.ResourceManager.Maps.Models.MapsCorsRule
Public Shared Function MapsCorsRule (Optional allowedOrigins As IEnumerable(Of String) = Nothing) As MapsCorsRule

Parameters

allowedOrigins
IEnumerable<String>

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

Returns

A new MapsCorsRule instance for mocking.

Applies to