Freigeben über


ApiResourceCollection.AddApiResource Methode

Definition

Fügt eine neue extern registrierte API hinzu.

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

Parameter

name
String

Der Name der API.

configure
Action<ApiResourceBuilder>

Der Action<T> zum Konfigurieren der extern registrierten API.

Gilt für: