TagHelperContent.SetContent(String) Method

Definition

Sets the content.

public:
 Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^ SetContent(System::String ^ unencoded);
public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetContent (string unencoded);
member this.SetContent : string -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent
Public Function SetContent (unencoded As String) As TagHelperContent

Parameters

unencoded
String

The String that replaces the content. The value is assume to be unencoded as-provided and will be HTML encoded before being written.

Returns

A reference to this instance after the set operation has completed.

Applies to