Partilhar via


ApiResourceCollection.AddApiResource Método

Definição

Adiciona uma nova API registrada externamente.

public:
 void AddApiResource(System::String ^ name, Action<Microsoft::AspNetCore::ApiAuthorization::IdentityServer::ApiResourceBuilder ^> ^ configure);
public void AddApiResource (string name, Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiResourceBuilder> configure);
member this.AddApiResource : string * Action<Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiResourceBuilder> -> unit
Public Sub AddApiResource (name As String, configure As Action(Of ApiResourceBuilder))

Parâmetros

name
String

O nome da API.

configure
Action<ApiResourceBuilder>

O Action<T> para configurar a API registrada externamente.

Aplica-se a