ModeMatchResult<TMode> Class

Summary

Result of determining the mode an @!:ITagHelper- will run in.

Inheritance Hierarchy

  • System.Object
  • Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult<TMode>

Syntax

public class ModeMatchResult<TMode>

GitHub

View on GitHub

Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult<TMode>

Properties

FullMatches()

Modes that had all attributes present.

Return type:System.Collections.Generic.IList{Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchAttributes{{TMode}}}
public IList<ModeMatchAttributes<TMode>> FullMatches { get; }
PartialMatches()

Modes that were missing attributes but had at least one attribute present.

Return type:System.Collections.Generic.IList{Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchAttributes{{TMode}}}
public IList<ModeMatchAttributes<TMode>> PartialMatches { get; }
PartiallyMatchedAttributes()

Attributes that are present in at least one mode in [Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult`1.PartialMatches](Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult`1.yml), but in no modes in [Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult`1.FullMatches](Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult`1.yml).

Return type:System.Collections.Generic.IList{System.String}
public IList<string> PartiallyMatchedAttributes { get; }

Methods

Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult<TMode>.LogDetails<TTagHelper>(ILogger, TTagHelper, System.String, System.String)

Logs the details of the [Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult`1](Microsoft.AspNet.Mvc.TagHelpers.Internal.ModeMatchResult`1.yml).

Arguments:
  • logger (ILogger) – The @!:ILogger-.
  • tagHelper (TTagHelper) – The @!:ITagHelper-.
  • uniqueId (System.String) – The value of @!:TagHelperContext.UniqueId-.
  • viewPath (System.String) – The path to the view the @!:ITagHelper- is on.
public void LogDetails<TTagHelper>(ILogger logger, TTagHelper tagHelper, string uniqueId, string viewPath)where TTagHelper : ITagHelper