LaunchBoxContributors
On this page

PluginConnectionResult14.1

Class in Unbroken.LaunchBox.Plugins.Capabilities.Connections

C#
public sealed class PluginConnectionResult
Reports a connection interaction outcome with localized validation errors.

Constructors

PluginConnectionResult

C#
public PluginConnectionResult(
    PluginConnectionOutcome outcome,
    string? connectionId = null,
    PluginText? errorMessage = null,
    IReadOnlyDictionary<string, PluginText>? fieldErrors = null
)
Creates an outcome.
outcome
Connected, Cancelled, or Failed.
connectionId
Required on success and absent otherwise.
errorMessage
Optional failure message.
fieldErrors
Optional failure errors keyed by form field ID.

Properties

ConnectionId

C#
public string? ConnectionId { get; }
Gets the connection handle on success.

ErrorMessage

C#
public PluginText? ErrorMessage { get; }
Gets the optional localized failure message.

FieldErrors

C#
public IReadOnlyDictionary<string, PluginText> FieldErrors { get; }
Gets an immutable snapshot of localized field errors.

Outcome

C#
public PluginConnectionOutcome Outcome { get; }
Gets the outcome.

Succeeded

C#
public bool Succeeded { get; }
Gets whether a usable connection was established.