Dela via


ApiResourceCollection.AddApiResource Method

Definition

Adds a new externally registered API.

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

Parameters

name
String

The name of the API.

configure
Action<ApiResourceBuilder>

The Action<T> to configure the externally registered API.

Applies to