Table of Contents

Class ClassFact

Namespace
RDCore.SDK.Semantics
Assembly
RDCore.SDK.dll

A class whose objects a module creates, with a New expression (MS-VBAL §5.6.8) or a variable declared As New (MS-VBAL §5.2.3.1.4): what is known of creating its objects, so that it can be read without the class's declaration, which may be in another module or in a library.

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

Constructors

ClassFact(Uri, string, bool, bool)

A class whose objects a module creates, with a New expression (MS-VBAL §5.6.8) or a variable declared As New (MS-VBAL §5.2.3.1.4): what is known of creating its objects, so that it can be read without the class's declaration, which may be in another module or in a library.

public ClassFact(Uri Class, string Name, bool IsCreatable, bool IsRegistered)

Parameters

Class Uri

The address of the class.

Name string

The name of the class.

IsCreatable bool

Whether New of the class is valid outside its project: the VB_Creatable attribute of a class module, or, for a library's class, what its library declares (Creatable).

IsRegistered bool

Whether anything creates the class's objects when New asks for one. false for a class its library declares creatable which nothing implements (Unregistered): MS-VBA compiles New ErrObject, and creating the object raises run-time error -2147221164 Class not registered (recorded in Excel). true for every class of the project.

Properties

Class

The address of the class.

public Uri Class { get; init; }

Property Value

Uri

IsCreatable

Whether New of the class is valid outside its project: the VB_Creatable attribute of a class module, or, for a library's class, what its library declares (Creatable).

public bool IsCreatable { get; init; }

Property Value

bool

IsRegistered

Whether anything creates the class's objects when New asks for one. false for a class its library declares creatable which nothing implements (Unregistered): MS-VBA compiles New ErrObject, and creating the object raises run-time error -2147221164 Class not registered (recorded in Excel). true for every class of the project.

public bool IsRegistered { get; init; }

Property Value

bool

Name

The name of the class.

public string Name { get; init; }

Property Value

string