Interface IContentRenderer
Interface representing a content renderer.
Namespace:Contentful.Core.Models
Assembly:cs.temp.dll.dll
Syntax
public interface IContentRenderer
Properties
Order
The order this renderer should have in the collection of renderers.
Declaration
int Order { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Render(IContent)
Renders the provided content as a string.
Declaration
string Render(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content to render. |
Returns
Type | Description |
---|---|
System.String |
RenderAsync(IContent)
Renders the provided content as a string.
Declaration
Task<string> RenderAsync(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content to render. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> |
SupportsContent(IContent)
Whether or not the renderer supports the specified content.
Declaration
bool SupportsContent(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content to evaluate for rendering. |
Returns
Type | Description |
---|---|
System.Boolean | True if the renderer can render the provided content, otherwise false. |