Share via


ICorsPolicyProvider.GetCorsPolicyAsync Method (HttpRequestMessage, CancellationToken)

 

Gets the CorsPolicy.

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

Syntax

Task<CorsPolicy> GetCorsPolicyAsync(
    HttpRequestMessage request,
    CancellationToken cancellationToken
)
Task<CorsPolicy^>^ GetCorsPolicyAsync(
    HttpRequestMessage^ request,
    CancellationToken cancellationToken
)
abstract GetCorsPolicyAsync : 
        request:HttpRequestMessage *
        cancellationToken:CancellationToken -> Task<CorsPolicy>
Function GetCorsPolicyAsync (
    request As HttpRequestMessage,
    cancellationToken As CancellationToken
) As Task(Of CorsPolicy)

Parameters

Return Value

Type: System.Threading.Tasks.Task<CorsPolicy>

The CorsPolicy.

See Also

ICorsPolicyProvider Interface
System.Web.Http.Cors Namespace

Return to top