CorsRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) | |
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) | |
ToJsonString() |
Serializes this instance to a json string. |