ApiResourceCollection.AddApiResource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.