Partager via


ApiResourceCollection.AddApiResource Méthode

Définition

Ajoute une nouvelle API inscrite en externe.

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))

Paramètres

name
String

Nom de l’API.

configure
Action<ApiResourceBuilder>

pour Action<T> configurer l’API inscrite en externe.

S’applique à