共用方式為


CorsService.EvaluateRequest(HttpContext, CorsPolicy, CorsResult) 方法

定義

使用指定的原則評估要求。 結果會在指定的 CorsResult 實例上設定。

public:
 virtual void EvaluateRequest(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ policy, Microsoft::AspNetCore::Cors::Infrastructure::CorsResult ^ result);
public virtual void EvaluateRequest (Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy, Microsoft.AspNetCore.Cors.Infrastructure.CorsResult result);
abstract member EvaluateRequest : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy * Microsoft.AspNetCore.Cors.Infrastructure.CorsResult -> unit
override this.EvaluateRequest : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy * Microsoft.AspNetCore.Cors.Infrastructure.CorsResult -> unit
Public Overridable Sub EvaluateRequest (context As HttpContext, policy As CorsPolicy, result As CorsResult)

參數

context
HttpContext

目前的 HTTP 內容。

policy
CorsPolicy

要評估的 CorsPolicy

result
CorsResult

CorsResult 設定結果的 。

適用於