Docs · API reference · Verso.Abstractions

RenderResult Class#

Represents rendered content returned by a content renderer or output formatter.

public sealed record RenderResult : System.IEquatable<Verso.Abstractions.RenderResult>

Inheritance System.Object → RenderResult

Implements System.IEquatable<RenderResult>

Constructors#

RenderResult(string, string) Constructor#

Represents rendered content returned by a content renderer or output formatter.

public RenderResult(string MimeType, string Content);

Parameters#

MimeType System.String

The MIME type of the rendered content (e.g. "text/html", "image/png").

Content System.String

The rendered content payload in the format indicated by MimeType.

Properties#

Content Property#

The rendered content payload in the format indicated by MimeType.

public string Content { get; init; }

Property Value#

System.String

MimeType Property#

The MIME type of the rendered content (e.g. "text/html", "image/png").

public string MimeType { get; init; }

Property Value#

System.String