Share via


CorsResult Class

 

Results returned by CorsEngine.

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

Inheritance Hierarchy

System.Object
  System.Web.Cors.CorsResult

Syntax

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

Constructors

Name Description
System_CAPS_pubmethod CorsResult()

Initializes a new instance of the CorsResult class.

Properties

Name Description
System_CAPS_pubproperty AllowedExposedHeaders

Gets the allowed headers that can be exposed on the response.

System_CAPS_pubproperty AllowedHeaders

Gets the allowed headers.

System_CAPS_pubproperty AllowedMethods

Gets the allowed methods.

System_CAPS_pubproperty AllowedOrigin

Gets or sets the allowed origin.

System_CAPS_pubproperty ErrorMessages

Gets the error messages.

System_CAPS_pubproperty IsValid

Gets a value indicating whether the result is valid.

System_CAPS_pubproperty PreflightMaxAge

Gets or sets the number of seconds the results of a preflight request can be cached.

System_CAPS_pubproperty SupportsCredentials

Gets or sets a value indicating whether the resource supports user credentials.

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 ToResponseHeaders()

Returns CORS-specific headers that should be added to the response.

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