FilterContext.FindEffectivePolicy<TMetadata> Method

Definition

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

Applies to