This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

ApiFetch Pennington.DocSite.Api.Components.Reference

Result of Fetch: a success flag with either the value or inline error HTML.

Properties

ErrorHtml string
Inline error HTML when Ok is false; otherwise null.
Ok bool
Whether the fetch succeeded.
Value T
The fetched value when Ok is true; otherwise the default.

Constructors

ApiFetch

#
public ApiFetch`1(bool Ok, T Value, string ErrorHtml)

Result of Fetch: a success flag with either the value or inline error HTML.

Parameters

Ok bool
Whether the fetch succeeded.
Value T
The fetched value when Ok is true; otherwise the default.
ErrorHtml string
Inline error HTML when Ok is false; otherwise null.

Pennington.DocSite.Api.Components.Reference.ApiFetch

namespace Pennington.DocSite.Api.Components.Reference;

/// Result of Fetch: a success flag with either the value or inline error HTML.
public struct ApiFetch
{
    /// Result of Fetch: a success flag with either the value or inline error HTML.
    
public ApiFetch`1(bool Ok, T Value, string ErrorHtml)
; /// Inline error HTML when Ok is false; otherwise null.
public string ErrorHtml { get; set; }
/// Whether the fetch succeeded.
public bool Ok { get; set; }
/// The fetched value when Ok is true; otherwise the default.
public T Value { get; set; }
}