A Sandcastle Documented Class Library

# CorsPolicyProvider GetPolicyAsync Method

Namespace: Dundas.BI.WebApi
Assembly: Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public Task<CorsPolicy> GetPolicyAsync(
    	HttpContext context,
    	string policyName
    )

    Public Function GetPolicyAsync (
    	context As HttpContext,
    	policyName As String
    ) As Task(Of CorsPolicy)

    public:
    virtual Task<CorsPolicy^>^ GetPolicyAsync(
    	HttpContext^ context,
    	String^ policyName
    ) sealed

    abstract GetPolicyAsync :
            context : HttpContext *
            policyName : string -> Task<CorsPolicy>
    override GetPolicyAsync :
            context : HttpContext *
            policyName : string -> Task<CorsPolicy>

#### Parameters

context
  Type: Microsoft.AspNetCore.Http
  HttpContext
policyName
  Type: System
  String

#### Return Value

Type: Task
CorsPolicy
See Also

#### Reference

CorsPolicyProvider Class
Dundas.BI.WebApi Namespace