CorsRule Class

Definition

Specifies a CORS rule for the Blob service.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.CorsRuleTypeConverter))]
public class CorsRule : Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ICorsRule
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.CorsRuleTypeConverter))>]
type CorsRule = class
    interface ICorsRule
    interface IJsonSerializable
Public Class CorsRule
Implements ICorsRule
Inheritance
CorsRule
Attributes
Implements

Constructors

CorsRule()

Creates an new CorsRule instance.

Properties

AllowedHeader

Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.

AllowedMethod

Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.

AllowedOrigin

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

ExposedHeader

Required if CorsRule element is present. A list of response headers to expose to CORS clients.

MaxAgeInSecond

Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of CorsRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of CorsRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ICorsRule.

FromJsonString(String)

Creates a new instance of CorsRule, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of CorsRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to