ApiResourceBuilder.WithScopes(String[]) 方法

定义

将其他范围添加到 API 资源。

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

参数

resourceScopes
String[]

范围列表。

返回

ApiResourceBuilder

适用于