Share via


ContentViewComponentResult(String) Constructor

Definition

Initializes a new ContentViewComponentResult.

public:
 ContentViewComponentResult(System::String ^ content);
public ContentViewComponentResult (string content);
new Microsoft.AspNetCore.Mvc.ViewComponents.ContentViewComponentResult : string -> Microsoft.AspNetCore.Mvc.ViewComponents.ContentViewComponentResult
Public Sub New (content As String)

Parameters

content
String

Content to write. The content will be HTML encoded when written.

Applies to