AuthorizationEndpointConventionBuilderExtensions.RequireAuthorization Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
RequireAuthorization<TBuilder>(TBuilder) |
Varsayılan yetkilendirme ilkesini uç noktalara ekler. |
RequireAuthorization<TBuilder>(TBuilder, AuthorizationPolicy) |
Uç noktalara yetkilendirme ilkesi ekler. |
RequireAuthorization<TBuilder>(TBuilder, IAuthorizeData[]) |
Belirtilen IAuthorizeData ile yetkilendirme ilkelerini uç noktalara ekler. |
RequireAuthorization<TBuilder>(TBuilder, Action<AuthorizationPolicyBuilder>) |
Uç noktalara geri çağırma tarafından yapılandırılan yeni bir yetkilendirme ilkesi ekler. |
RequireAuthorization<TBuilder>(TBuilder, String[]) |
Belirtilen adlarla yetkilendirme ilkelerini uç noktalara ekler. |
RequireAuthorization<TBuilder>(TBuilder)
Varsayılan yetkilendirme ilkesini uç noktalara ekler.
public:
generic <typename TBuilder>
where TBuilder : Microsoft::AspNetCore::Builder::IEndpointConventionBuilder[System::Runtime::CompilerServices::Extension]
static TBuilder RequireAuthorization(TBuilder builder);
public static TBuilder RequireAuthorization<TBuilder> (this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member RequireAuthorization : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function RequireAuthorization(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder) As TBuilder
Tür Parametreleri
- TBuilder
Parametreler
- builder
- TBuilder
Uç nokta kuralı oluşturucusu.
Döndürülenler
Özgün kural oluşturucu parametresi.
Şunlara uygulanır
RequireAuthorization<TBuilder>(TBuilder, AuthorizationPolicy)
Uç noktalara yetkilendirme ilkesi ekler.
public static TBuilder RequireAuthorization<TBuilder> (this TBuilder builder, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member RequireAuthorization : 'Builder * Microsoft.AspNetCore.Authorization.AuthorizationPolicy -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function RequireAuthorization(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, policy As AuthorizationPolicy) As TBuilder
Tür Parametreleri
- TBuilder
Parametreler
- builder
- TBuilder
Uç nokta kuralı oluşturucusu.
- policy
- AuthorizationPolicy
İlke AuthorizationPolicy .
Döndürülenler
Özgün kural oluşturucu parametresi.
Şunlara uygulanır
RequireAuthorization<TBuilder>(TBuilder, IAuthorizeData[])
Belirtilen IAuthorizeData ile yetkilendirme ilkelerini uç noktalara ekler.
public:
generic <typename TBuilder>
where TBuilder : Microsoft::AspNetCore::Builder::IEndpointConventionBuilder[System::Runtime::CompilerServices::Extension]
static TBuilder RequireAuthorization(TBuilder builder, ... cli::array <Microsoft::AspNetCore::Authorization::IAuthorizeData ^> ^ authorizeData);
public static TBuilder RequireAuthorization<TBuilder> (this TBuilder builder, params Microsoft.AspNetCore.Authorization.IAuthorizeData[] authorizeData) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member RequireAuthorization : 'Builder * Microsoft.AspNetCore.Authorization.IAuthorizeData[] -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function RequireAuthorization(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, ParamArray authorizeData As IAuthorizeData()) As TBuilder
Tür Parametreleri
- TBuilder
Parametreler
- builder
- TBuilder
Uç nokta kuralı oluşturucusu.
- authorizeData
- IAuthorizeData[]
authorizeData
koleksiyonu. Boşsa, varsayılan yetkilendirme ilkesi kullanılır.
Döndürülenler
Özgün kural oluşturucu parametresi.
Şunlara uygulanır
RequireAuthorization<TBuilder>(TBuilder, Action<AuthorizationPolicyBuilder>)
Uç noktalara geri çağırma tarafından yapılandırılan yeni bir yetkilendirme ilkesi ekler.
public static TBuilder RequireAuthorization<TBuilder> (this TBuilder builder, Action<Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder> configurePolicy) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member RequireAuthorization : 'Builder * Action<Microsoft.AspNetCore.Authorization.AuthorizationPolicyBuilder> -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function RequireAuthorization(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, configurePolicy As Action(Of AuthorizationPolicyBuilder)) As TBuilder
Tür Parametreleri
- TBuilder
Parametreler
- builder
- TBuilder
Uç nokta kuralı oluşturucusu.
- configurePolicy
- Action<AuthorizationPolicyBuilder>
İlkeyi yapılandırmak için kullanılan geri çağırma.
Döndürülenler
Özgün kural oluşturucu parametresi.
Şunlara uygulanır
RequireAuthorization<TBuilder>(TBuilder, String[])
Belirtilen adlarla yetkilendirme ilkelerini uç noktalara ekler.
public:
generic <typename TBuilder>
where TBuilder : Microsoft::AspNetCore::Builder::IEndpointConventionBuilder[System::Runtime::CompilerServices::Extension]
static TBuilder RequireAuthorization(TBuilder builder, ... cli::array <System::String ^> ^ policyNames);
public static TBuilder RequireAuthorization<TBuilder> (this TBuilder builder, params string[] policyNames) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member RequireAuthorization : 'Builder * string[] -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function RequireAuthorization(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder, ParamArray policyNames As String()) As TBuilder
Tür Parametreleri
- TBuilder
Parametreler
- builder
- TBuilder
Uç nokta kuralı oluşturucusu.
- policyNames
- String[]
İlke adları koleksiyonu. Boşsa, varsayılan yetkilendirme ilkesi kullanılır.
Döndürülenler
Özgün kural oluşturucu parametresi.