TagHelperContent.SetContent(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.