FilterContext.FindEffectivePolicy<TMetadata> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the most effective (most specific) policy of type TMetadata
applied to
the action associated with the FilterContext.
public:
generic <typename TMetadata>
where TMetadata : Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata TMetadata FindEffectivePolicy();
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
The implementation of TMetadata
applied to the action associated with
the FilterContext