Table of Contents

Class FakeAction

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.Protocol.dll

What a call a FakeRow matches does.

public sealed record FakeAction : IEquatable<FakeAction>
Inheritance
FakeAction
Implements
Inherited Members

Constructors

FakeAction(FakeActionKind, RunValue?, int, string?, IReadOnlyList<FakeAssignment>?)

What a call a FakeRow matches does.

public FakeAction(FakeActionKind Kind, RunValue? Value = null, int ErrorNumber = 0, string? ErrorDescription = null, IReadOnlyList<FakeAssignment>? Assignments = null)

Parameters

Kind FakeActionKind

Whether the call returns, raises, or runs.

Value RunValue

For Return, the value returned, Let-coerced to the member's declared type (MS-VBAL §5.5.1.2): null for a Sub, or for the member type's default value. null otherwise.

ErrorNumber int

For Raise, the number of the error raised; 0 otherwise.

ErrorDescription string

For Raise, the error's description: null for the description of ErrorNumber.

Assignments IReadOnlyList<FakeAssignment>

For Return and Raise, the ByRef arguments the call writes before it returns or raises.

Properties

Assignments

The ByRef arguments the call writes, in order. Empty when it writes none.

public IReadOnlyList<FakeAssignment> Assignments { get; init; }

Property Value

IReadOnlyList<FakeAssignment>

ErrorDescription

For Raise, the error's description: null for the description of ErrorNumber.

public string? ErrorDescription { get; init; }

Property Value

string

ErrorNumber

For Raise, the number of the error raised; 0 otherwise.

public int ErrorNumber { get; init; }

Property Value

int

Kind

Whether the call returns, raises, or runs.

public FakeActionKind Kind { get; init; }

Property Value

FakeActionKind

Value

For Return, the value returned, Let-coerced to the member's declared type (MS-VBAL §5.5.1.2): null for a Sub, or for the member type's default value. null otherwise.

public RunValue? Value { get; init; }

Property Value

RunValue