CosmosDBAccountCorsPolicy 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.
The CORS policy for the Cosmos DB database account.
public class CosmosDBAccountCorsPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountCorsPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.Models.CosmosDBAccountCorsPolicy>
type CosmosDBAccountCorsPolicy = class
interface IJsonModel<CosmosDBAccountCorsPolicy>
interface IPersistableModel<CosmosDBAccountCorsPolicy>
Public Class CosmosDBAccountCorsPolicy
Implements IJsonModel(Of CosmosDBAccountCorsPolicy), IPersistableModel(Of CosmosDBAccountCorsPolicy)
- Inheritance
-
CosmosDBAccountCorsPolicy
- Implements
Constructors
CosmosDBAccountCorsPolicy(String) |
Initializes a new instance of CosmosDBAccountCorsPolicy. |
Properties
AllowedHeaders |
The request headers that the origin domain may specify on the CORS request. |
AllowedMethods |
The methods (HTTP request verbs) that the origin domain may use for a CORS request. |
AllowedOrigins |
The origin domains that are permitted to make a request against the service via CORS. |
ExposedHeaders |
The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer. |
MaxAgeInSeconds |
The maximum amount time that a browser should cache the preflight OPTIONS request. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<CosmosDBAccountCorsPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<CosmosDBAccountCorsPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<CosmosDBAccountCorsPolicy>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<CosmosDBAccountCorsPolicy>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<CosmosDBAccountCorsPolicy>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET