Compartir a través de


CorsPolicyBuilder.WithMethods(String[]) Método

Definición

Agrega el especificado methods a la directiva.

public:
 Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicyBuilder ^ WithMethods(... cli::array <System::String ^> ^ methods);
public Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder WithMethods (params string[] methods);
member this.WithMethods : string[] -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Function WithMethods (ParamArray methods As String()) As CorsPolicyBuilder

Parámetros

methods
String[]

Métodos que se deben agregar a la directiva.

Devoluciones

Generador de directivas actual.

Se aplica a