ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc.Fluent Namespace / IHtmlStringExtension Class / ToTemplate Method / ToTemplate(IHtmlContent) Method
The specified HelperResult.






In This Topic
    ToTemplate(IHtmlContent) Method
    In This Topic
    Render the HelperResult in template mode.
    Syntax
    'Declaration
     
    
    <System.Runtime.CompilerServices.ExtensionAttribute()>
    Public Overloads Shared Function ToTemplate( _
       ByVal htmlContent As Microsoft.AspNetCore.Html.IHtmlContent _
    ) As Microsoft.AspNetCore.Html.IHtmlContent
    'Usage
     
    
    Dim htmlContent As Microsoft.AspNetCore.Html.IHtmlContent
    Dim value As Microsoft.AspNetCore.Html.IHtmlContent
     
    value = IHtmlStringExtension.ToTemplate(htmlContent)
    [System.Runtime.CompilerServices.Extension()]
    public static Microsoft.AspNetCore.Html.IHtmlContent ToTemplate( 
       Microsoft.AspNetCore.Html.IHtmlContent htmlContent
    )
    public function ToTemplate( 
        htmlContent: Microsoft.AspNetCore.Html.IHtmlContent
    ): Microsoft.AspNetCore.Html.IHtmlContent; static; 
    System.Runtime.CompilerServices.ExtensionAttribute()
    public static function ToTemplate( 
       htmlContent : Microsoft.AspNetCore.Html.IHtmlContent
    ) : Microsoft.AspNetCore.Html.IHtmlContent;
    [System.Runtime.CompilerServices.Extension()]
    public: static Microsoft.AspNetCore.Html.IHtmlContent* ToTemplate( 
       Microsoft.AspNetCore.Html.IHtmlContent* htmlContent
    ) 
    [System.Runtime.CompilerServices.Extension()]
    public:
    static Microsoft.AspNetCore.Html.IHtmlContent^ ToTemplate( 
       Microsoft.AspNetCore.Html.IHtmlContent^ htmlContent
    ) 

    Parameters

    htmlContent
    The specified HelperResult.

    Return Value

    The HelperResult with the template mode.
    See Also