TagHelperRequiredAttributeDescriptor Class¶
A metadata class describing a required tag helper attribute.
- Namespace
Microsoft.AspNetCore.Razor.Compilation.TagHelpers- Assemblies
- Microsoft.AspNetCore.Razor
Syntax¶
public class TagHelperRequiredAttributeDescriptor
-
class
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptor
Methods¶
-
IsMatch(System.String, System.String)¶ Determines if the current
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptormatches the given <em>attributeName</em> and <em>attributeValue</em>.Arguments: - attributeName (System.String) – An HTML attribute name.
- attributeValue (System.String) – An HTML attribute value.
Return type: System.Boolean
Returns: <code>true</code> if the current
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptormatches <em>attributeName</em> and <em>attributeValue</em>; <code>false</code> otherwise.public bool IsMatch(string attributeName, string attributeValue)
-
Properties¶
-
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptor.Name¶ The HTML attribute name.
Return type: System.String public string Name { get; set; }
-
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptor.NameComparison¶ The comparison method to use for
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptor.Namewhen determining if an HTML attribute name matches.Return type: Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeNameComparison public TagHelperRequiredAttributeNameComparison NameComparison { get; set; }
-
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptor.Value¶ The HTML attribute value.
Return type: System.String public string Value { get; set; }
-
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptor.ValueComparison¶ The comparison method to use for
Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeDescriptor.Valuewhen determining if an HTML attribute value matches.Return type: Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperRequiredAttributeValueComparison public TagHelperRequiredAttributeValueComparison ValueComparison { get; set; }
-