TagHelperContent.SetHtmlContent 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.
Overloads
SetHtmlContent(IHtmlContent) |
Sets the content. |
SetHtmlContent(String) |
Sets the content. |
SetHtmlContent(IHtmlContent)
- Source:
- TagHelperContent.cs
- Source:
- TagHelperContent.cs
- Source:
- TagHelperContent.cs
Sets the content.
public:
Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^ SetHtmlContent(Microsoft::AspNetCore::Html::IHtmlContent ^ htmlContent);
public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetHtmlContent (Microsoft.AspNetCore.Html.IHtmlContent htmlContent);
member this.SetHtmlContent : Microsoft.AspNetCore.Html.IHtmlContent -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent
Public Function SetHtmlContent (htmlContent As IHtmlContent) As TagHelperContent
Parameters
- htmlContent
- IHtmlContent
The IHtmlContent that replaces the content.
Returns
A reference to this instance after the set operation has completed.
Applies to
SetHtmlContent(String)
- Source:
- TagHelperContent.cs
- Source:
- TagHelperContent.cs
- Source:
- TagHelperContent.cs
Sets the content.
public:
Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^ SetHtmlContent(System::String ^ encoded);
public Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent SetHtmlContent (string encoded);
member this.SetHtmlContent : string -> Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent
Public Function SetHtmlContent (encoded As String) As TagHelperContent
Parameters
- encoded
- String
The String that replaces the content. The value is assume to be HTML encoded as-provided and no further encoding will be performed.
Returns
A reference to this instance after the set operation has completed.