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






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

    Parameters

    htmlString
    The specified html string

    Return Value

    An instance of html string with the template mode.
    See Also