Show / Hide Table of Contents

Class NullContentRenderer

A content renderer that doesn't output anything.

Inheritance
System.Object
NullContentRenderer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Contentful.Core.Models
Assembly:cs.temp.dll.dll
Syntax
public class NullContentRenderer : IContentRenderer

Properties

Order

The order of this renderer in the collection.

Declaration
public int Order { get; set; }
Property Value
Type Description
System.Int32
Implements
IContentRenderer.Order

Methods

Render(IContent)

Renders the content to a string.

Declaration
public string Render(IContent content)
Parameters
Type Name Description
IContent content

The content to render.

Returns
Type Description
System.String

An empty string.

Implements
IContentRenderer.Render(IContent)

RenderAsync(IContent)

Renders the content asynchronously.

Declaration
public Task<string> RenderAsync(IContent content)
Parameters
Type Name Description
IContent content

The content to render.

Returns
Type Description
System.Threading.Tasks.Task<System.String>

The rendered string.

Implements
IContentRenderer.RenderAsync(IContent)

SupportsContent(IContent)

Whether or not this renderer supports the provided content.

Declaration
public bool SupportsContent(IContent content)
Parameters
Type Name Description
IContent content

The content to evaluate.

Returns
Type Description
System.Boolean

Returns true for all content.

Implements
IContentRenderer.SupportsContent(IContent)
Back to top Copyright © 2015-2016 Contentful
Generated by DocFX