AttributeMatcher Class¶
Summary¶
Methods for determining how an @!:ITagHelper- should run based on the attributes that were specified.
Methods¶
-
Microsoft.AspNet.Mvc.TagHelpers.Internal.AttributeMatcher.DetermineMode<TMode>(TagHelperContext, System.Collections.Generic.IEnumerable<Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeAttributes<TMode>>)
Determines the modes a @!:ITagHelper- can run in based on which modes have all their required attributes present, non null, non empty, and non whitepsace.
Arguments: - context (TagHelperContext) – The @!:TagHelperContext-.
- modeInfos (System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeAttributes{{TMode}}}) – The modes and their required attributes.
Return type: Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult{{TMode}}
Returns: The [Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult`1](Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult`1.yml).
public static ModeMatchResult<TMode> DetermineMode<TMode>(TagHelperContext context, IEnumerable<ModeAttributes<TMode>> modeInfos)
-