Share via


CorsRequestContext Class

 

Provides access to CORS-specific information on the request.

Namespace:   System.Web.Cors
Assembly:  System.Web.Cors (in System.Web.Cors.dll)

Inheritance Hierarchy

System.Object
  System.Web.Cors.CorsRequestContext

Syntax

public class CorsRequestContext
public ref class CorsRequestContext 
type CorsRequestContext = class end
Public Class CorsRequestContext

Constructors

Name Description
System_CAPS_pubmethod CorsRequestContext()

Initializes a new instance of the CorsRequestContext class.

Properties

Name Description
System_CAPS_pubproperty AccessControlRequestHeaders

Gets the Access-Control-Request-Headers header value.

System_CAPS_pubproperty AccessControlRequestMethod

Gets or sets the Access-Control-Request-Method header value.

System_CAPS_pubproperty Host

Gets or sets the Host header value.

System_CAPS_pubproperty HttpMethod

Gets or sets the request method.

System_CAPS_pubproperty IsPreflight

Gets a value indicating whether this is a preflight request.

System_CAPS_pubproperty Origin

Gets or sets the Origin header value.

System_CAPS_pubproperty Properties

Gets a set of properties for the CorsRequestContext.

System_CAPS_pubproperty RequestUri

Gets or sets the request URI.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

Returns a String that represents this instance.(Overrides Object.ToString().)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Cors Namespace

Return to top