PolicyServiceCollectionExtensions.AddAuthorizationBuilder 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將授權服務新增至指定的 IServiceCollection 。
public static Microsoft.AspNetCore.Authorization.AuthorizationBuilder AddAuthorizationBuilder (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddAuthorizationBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.Authorization.AuthorizationBuilder
<Extension()>
Public Function AddAuthorizationBuilder (services As IServiceCollection) As AuthorizationBuilder
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
傳回
AuthorizationBuilder,以便鏈結其他呼叫。