TagHelperPrefixDirectiveChunkGenerator Class¶
A Microsoft.AspNetCore.Razor.Chunks.Generators.SpanChunkGenerator responsible for generating
Microsoft.AspNetCore.Razor.Chunks.TagHelperPrefixDirectiveChunks.
- Namespace
Microsoft.AspNetCore.Razor.Chunks.Generators- Assemblies
- Microsoft.AspNetCore.Razor
Syntax¶
public class TagHelperPrefixDirectiveChunkGenerator : SpanChunkGenerator, ISpanChunkGenerator
-
class
Microsoft.AspNetCore.Razor.Chunks.Generators.TagHelperPrefixDirectiveChunkGenerator
Constructors¶
-
TagHelperPrefixDirectiveChunkGenerator(System.String)¶ Initializes a new instance of
Microsoft.AspNetCore.Razor.Chunks.Generators.TagHelperPrefixDirectiveChunkGenerator.Arguments: prefix (System.String) – Text used as a required prefix when matching HTML. public TagHelperPrefixDirectiveChunkGenerator(string prefix)
-
Methods¶
-
Equals(System.Object)¶ Return type: System.Boolean public override bool Equals(object obj)
-
GenerateChunk(Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Span, Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext)¶ Generates
Microsoft.AspNetCore.Razor.Chunks.TagHelperPrefixDirectiveChunks.Arguments: - target (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Span) – The
Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Spanresponsible for thisMicrosoft.AspNetCore.Razor.Chunks.Generators.TagHelperPrefixDirectiveChunkGenerator. - context (Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContext) – A
Microsoft.AspNetCore.Razor.Chunks.Generators.ChunkGeneratorContextinstance that contains information about the current chunk generation process.
public override void GenerateChunk(Span target, ChunkGeneratorContext context)
- target (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Span) – The
-
GetHashCode()¶ Return type: System.Int32 public override int GetHashCode()
-
Properties¶
-
Microsoft.AspNetCore.Razor.Chunks.Generators.TagHelperPrefixDirectiveChunkGenerator.Prefix¶ Text used as a required prefix when matching HTML.
Return type: System.String public string Prefix { get; }
-