Dela via


ApiResourceBuilder.WithScopes(String[]) Method

Definition

Adds additional scopes to the API resource.

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

Parameters

resourceScopes
String[]

The list of scopes.

Returns

The ApiResourceBuilder.

Applies to