Compartir a través de


CorsOptions.GetPolicy(String) Método

Definición

Obtiene la directiva basada en . name

public:
 Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ GetPolicy(System::String ^ name);
public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy GetPolicy (string name);
public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy? GetPolicy (string name);
member this.GetPolicy : string -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy
Public Function GetPolicy (name As String) As CorsPolicy

Parámetros

name
String

Nombre de la directiva que se va a buscar.

Devoluciones

CorsPolicy si se agregó la directiva.En caso contrario, es null.

Se aplica a