Freigeben über


ApiResourceBuilder.WithScopes(String[]) Methode

Definition

Fügt der API-Ressource zusätzliche Bereiche hinzu.

public:
 Microsoft::AspNetCore::ApiAuthorization::IdentityServer::ApiResourceBuilder ^ WithScopes(... cli::array <System::String ^> ^ resourceScopes);
public Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiResourceBuilder WithScopes (params string[] resourceScopes);
member this.WithScopes : string[] -> Microsoft.AspNetCore.ApiAuthorization.IdentityServer.ApiResourceBuilder
Public Function WithScopes (ParamArray resourceScopes As String()) As ApiResourceBuilder

Parameter

resourceScopes
String[]

Die Liste der Bereiche.

Gibt zurück

Die ApiResourceBuilder.

Gilt für: