Dela via


ApiResourceBuilder.ApiResource(String) Method

Definition

Creates a new builder for an externally registered API.

public:
 static Microsoft::AspNetCore::ApiAuthorization::IdentityServer::ApiResourceBuilder ^ ApiResource(System::String ^ name);
public static Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiResourceBuilder ApiResource (string name);
static member ApiResource : string -> Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiResourceBuilder
Public Shared Function ApiResource (name As String) As ApiResourceBuilder

Parameters

name
String

The name of the API.

Returns

An ApiResourceBuilder.

Applies to