Class ClassFact
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
ClassUriThe address of the class.
NamestringThe name of the class.
IsCreatableboolWhether
Newof the class is valid outside its project: theVB_Creatableattribute of a class module, or, for a library's class, what its library declares (Creatable).IsRegisteredboolWhether anything creates the class's objects when
Newasks for one. false for a class its library declares creatable which nothing implements (Unregistered): MS-VBA compilesNew 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
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
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
Name
The name of the class.
public string Name { get; init; }