FilterContext.FindEffectivePolicy FilterContext.FindEffectivePolicy FilterContext.FindEffectivePolicy Method

Definition

Returns the most effective (most specific) policy of type TMetadata applied to the action associated with the FilterContext.

public TMetadata FindEffectivePolicy<TMetadata> () where TMetadata : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata;
member this.FindEffectivePolicy : unit -> 'Metadata (requires 'Metadata :> Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata)
Public Function FindEffectivePolicy(Of TMetadata As IFilterMetadata) () As TMetadata

Type Parameters

TMetadata

The type of the filter policy.

Returns

TMetadata TMetadata TMetadata

The implementation of TMetadata applied to the action associated with the FilterContext

Applies to