Table of Contents

Class ClassDescription

Namespace
RDCore.SDK.Runtime.Libraries
Assembly
RDCore.SDK.dll

A class a library declares.

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

Properties

DefaultInterface

The name of the interface the class's Members are declared by, when it is not the class's own: IReturnBoolean of Microsoft Forms' ReturnBoolean, _Worksheet of Excel's Worksheet. It is a type name of the library too, which a program can declare a variable as (As MSForms.IReturnBoolean), and which an object of the class is; null for a class whose interface is not described.

public string? DefaultInterface { get; init; }

Property Value

string

Description

What the library says the class is.

public string? Description { get; init; }

Property Value

string

Events

The events the class raises, in declaration order.

public ImmutableArray<EventDescription> Events { get; init; }

Property Value

ImmutableArray<EventDescription>

IsApplication

Whether the class is the one the library's host is, which a host makes members of implicitly available (Excel.Application). Its members are never names of a project that references the library: a project says which object it is talking to.

public bool IsApplication { get; init; }

Property Value

bool

Remarks

The Visual Basic 6.0 library's Global is the exception: LibrarySymbolReader reads it as a standard module of the library, like VBA's own global module, so that its members are names of the project (Forms, VB.Forms, VB.Global.Forms).

IsCreatable

Whether the class can be created: with New, or by its ProgId. A class that is not is only ever obtained from another object.

public bool IsCreatable { get; init; }

Property Value

bool

IsDefaultInterfaceHidden

Whether the library leaves the DefaultInterface out of what it shows.

public bool IsDefaultInterfaceHidden { get; init; }

Property Value

bool

IsHidden

Whether the library leaves it out of what it shows.

public bool IsHidden { get; init; }

Property Value

bool

Members

The members of the class, in declaration order.

public ImmutableArray<MemberDescription> Members { get; init; }

Property Value

ImmutableArray<MemberDescription>

Name

The name of the class.

public string Name { get; init; }

Property Value

string

ProgId

The name an object of the class is created by from a string - CreateObject("Scripting.Dictionary") - when it can be.

public string? ProgId { get; init; }

Property Value

string

TypeName

What TypeName (MS-VBAL §6.1.2.7.1.12) says of an object of the class, when it is not the class's name: Picture, for the OLE Automation library's StdPicture, whose objects report the name of their dispatch interface. null for a class whose objects report its name.

public string? TypeName { get; init; }

Property Value

string

Remarks

MS-VBA asks the object for the name, and a type library does not say which one an object gives: Scripting.Dictionary reports its class and StdPicture its interface, though both have a DefaultInterface. So this is stated from what was observed and never derived, and a description exported from a type library leaves it out. A file states it from format version 4 (CurrentFormatVersion).