TagHelperContentExtensions Class

Summary

Extension methods for @!:TagHelperContent-.

Syntax

public class TagHelperContentExtensions

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.TagHelpers.TagHelperContentExtensions

Methods

Append(TagHelperContent, IHtmlEncoder, System.Text.Encoding, System.Object)

Writes the specified <paramref name=”value” /> with HTML encoding to given <paramref name=”content” />.

Arguments:
  • content (TagHelperContent) – The @!:TagHelperContent- to write to.
  • encoder (IHtmlEncoder) – The @!:IHtmlEncoder- to use when encoding <paramref name=”value” />.
  • encoding (System.Text.Encoding) – The character encoding in which the <paramref name=”value” /> is written.
  • value (System.Object) – The [System.Object]() to write.
Return type:

TagHelperContent

Returns:

<paramref name=”content” /> after the write operation has completed.

public static TagHelperContent Append(TagHelperContent content, IHtmlEncoder encoder, Encoding encoding, object value)