다음을 통해 공유


AuthenticationBuilder.AddScheme 메서드

정의

오버로드

AddScheme<TOptions,THandler>(String, Action<TOptions>)

에서 사용할 수 있는 을 AuthenticationSchemeIAuthenticationService추가합니다.

AddScheme<TOptions,THandler>(String, String, Action<TOptions>)

에서 사용할 수 있는 을 AuthenticationSchemeIAuthenticationService추가합니다.

AddScheme<TOptions,THandler>(String, Action<TOptions>)

Source:
AuthenticationBuilder.cs
Source:
AuthenticationBuilder.cs
Source:
AuthenticationBuilder.cs

에서 사용할 수 있는 을 AuthenticationSchemeIAuthenticationService추가합니다.

public:
generic <typename TOptions, typename THandler>
 where TOptions : Microsoft::AspNetCore::Authentication::AuthenticationSchemeOptionsgcnew() where THandler : Microsoft::AspNetCore::Authentication::AuthenticationHandler<TOptions> virtual Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddScheme(System::String ^ authenticationScheme, Action<TOptions> ^ configureOptions);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme<TOptions,THandler> (string authenticationScheme, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>;
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme<TOptions,THandler> (string authenticationScheme, Action<TOptions>? configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>;
abstract member AddScheme : string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options>)
override this.AddScheme : string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options>)
Public Overridable Function AddScheme(Of TOptions As {AuthenticationSchemeOptionsNew}, THandler As {AuthenticationSchemeOptionsNew}) (authenticationScheme As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder

형식 매개 변수

TOptions

AuthenticationSchemeOptions 처리기를 구성할 형식입니다.

THandler

AuthenticationHandler<TOptions> 이 체계를 처리하는 데 사용되는 입니다.

매개 변수

authenticationScheme
String

이 스키마의 이름입니다.

configureOptions
Action<TOptions>

구성표 옵션을 구성하는 데 사용됩니다.

반환

작성기입니다.

적용 대상

AddScheme<TOptions,THandler>(String, String, Action<TOptions>)

Source:
AuthenticationBuilder.cs
Source:
AuthenticationBuilder.cs
Source:
AuthenticationBuilder.cs

에서 사용할 수 있는 을 AuthenticationSchemeIAuthenticationService추가합니다.

public:
generic <typename TOptions, typename THandler>
 where TOptions : Microsoft::AspNetCore::Authentication::AuthenticationSchemeOptionsgcnew() where THandler : Microsoft::AspNetCore::Authentication::AuthenticationHandler<TOptions> virtual Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ AddScheme(System::String ^ authenticationScheme, System::String ^ displayName, Action<TOptions> ^ configureOptions);
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme<TOptions,THandler> (string authenticationScheme, string displayName, Action<TOptions> configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>;
public virtual Microsoft.AspNetCore.Authentication.AuthenticationBuilder AddScheme<TOptions,THandler> (string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) where TOptions : Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions, new() where THandler : Microsoft.AspNetCore.Authentication.AuthenticationHandler<TOptions>;
abstract member AddScheme : string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options>)
override this.AddScheme : string * string * Action<'Options (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options))> -> Microsoft.AspNetCore.Authentication.AuthenticationBuilder (requires 'Options :> Microsoft.AspNetCore.Authentication.AuthenticationSchemeOptions and 'Options : (new : unit -> 'Options) and 'Handler :> Microsoft.AspNetCore.Authentication.AuthenticationHandler<'Options>)
Public Overridable Function AddScheme(Of TOptions As {AuthenticationSchemeOptionsNew}, THandler As {AuthenticationSchemeOptionsNew}) (authenticationScheme As String, displayName As String, configureOptions As Action(Of TOptions)) As AuthenticationBuilder

형식 매개 변수

TOptions

AuthenticationSchemeOptions 처리기를 구성할 형식입니다.

THandler

AuthenticationHandler<TOptions> 이 체계를 처리하는 데 사용되는 입니다.

매개 변수

authenticationScheme
String

이 스키마의 이름입니다.

displayName
String

이 구성표의 표시 이름입니다.

configureOptions
Action<TOptions>

구성표 옵션을 구성하는 데 사용됩니다.

반환

작성기입니다.

적용 대상