DisableCorsAttribute Class

 

This class defines an attribute that can be applied to an action or a controller to disable CORS.

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

System::Object
  System::Attribute
    System.Web.Http.Cors::DisableCorsAttribute

[AttributeUsageAttribute(AttributeTargets::Class | AttributeTargets::Method, 
	AllowMultiple = false)]
public ref class DisableCorsAttribute sealed : Attribute, ICorsPolicyProvider

NameDescription
System_CAPS_pubmethodDisableCorsAttribute()

Initializes a new instance of the DisableCorsAttribute class.

NameDescription
System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodGetCorsPolicyAsync(HttpRequestMessage^, CancellationToken)

Gets the CORS policy asynchronously.

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: