Table of Contents

Class ProgramHookCall

Namespace
RDCore.SDK.Runtime.Hosting
Assembly
RDCore.SDK.dll

A hook of an invocation (BeforeProcedure, OnError): a member of an interface, called on the procedure's object when the object implements the interface (MS-VBAL §5.2.4.2), as TypeOf tells it (MS-VBAL §5.6.7). The object calls its own member that implements the interface's (MS-VBAL §5.3.1.9). A hook is not called on an object that does not implement the interface, nor for a procedure of a standard module.

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

Remarks

Its arguments bind to the parameters of the interface's member as the arguments of a ProgramCall do. An interface the program does not have, or a member that is not a Public Function or Property Get of it, ends the invocation as NotFound before anything runs.

Constructors

ProgramHookCall(string, string, IReadOnlyList<ProgramArgument>)

A hook of an invocation (BeforeProcedure, OnError): a member of an interface, called on the procedure's object when the object implements the interface (MS-VBAL §5.2.4.2), as TypeOf tells it (MS-VBAL §5.6.7). The object calls its own member that implements the interface's (MS-VBAL §5.3.1.9). A hook is not called on an object that does not implement the interface, nor for a procedure of a standard module.

public ProgramHookCall(string Interface, string Member, IReadOnlyList<ProgramArgument> Arguments)

Parameters

Interface string

The name of the interface, as RD-VBA names it: a class module of the program, or, qualified with the name of a library the program references, a class of that library: Library.Class.

Member string

The name of a Public Function or Property Get of the interface.

Arguments IReadOnlyList<ProgramArgument>

The arguments, by the names of the parameters of the interface's member they are passed to.

Remarks

Its arguments bind to the parameters of the interface's member as the arguments of a ProgramCall do. An interface the program does not have, or a member that is not a Public Function or Property Get of it, ends the invocation as NotFound before anything runs.

Properties

Arguments

The arguments, by the names of the parameters of the interface's member they are passed to.

public IReadOnlyList<ProgramArgument> Arguments { get; init; }

Property Value

IReadOnlyList<ProgramArgument>

Interface

The name of the interface, as RD-VBA names it: a class module of the program, or, qualified with the name of a library the program references, a class of that library: Library.Class.

public string Interface { get; init; }

Property Value

string

Member

The name of a Public Function or Property Get of the interface.

public string Member { get; init; }

Property Value

string