Class MemberDescription
A member of a class a library declares.
public sealed record MemberDescription : IEquatable<MemberDescription>
- Inheritance
-
MemberDescription
- Implements
- Inherited Members
Properties
Description
What the library says the member is.
public string? Description { get; init; }
Property Value
DispId
The dispatch identifier the library gives the member, when it gives one. 0 marks the default member of a class and -4 its enumerator.
public int? DispId { get; init; }
Property Value
- int?
IsDesignTimeOnly
Whether the member is a property that a form's designer sets and that a program can only read: assigned while the program runs, late-bound, it raises run-time error 382, "'name' property cannot be set at run time". Stated on the PropertyGet of a property the library declares with no PropertyLet or PropertySet. Such a property that is not design-time only is read-only, and the same assignment raises run-time error 383, "'name' property is read-only".
public bool IsDesignTimeOnly { get; init; }
Property Value
Remarks
A type library does not say which of the two a property is: both are a property get alone, with the same flags. So the fact is measured and stated in
the library's file ("isDesignTimeOnly": true), which a description exported again keeps through
KeepingDesignTimeOnly(LibraryDescription?, out IReadOnlyList<string>). The Visual Basic 6.0 library's is measured with VB6, by assigning each such property of its controls and its form while a program runs, through an Object, a
Control, the form's Controls and a Variant: every one refuses the assignment, after the value is coerced to the property's type.
IsHidden
Whether the library leaves it out of what it shows.
public bool IsHidden { get; init; }
Property Value
Kind
What the member is.
public MemberKind Kind { get; init; }
Property Value
Name
The name of the member.
public string Name { get; init; }
Property Value
Parameters
The parameters of the member, in declaration order.
public ImmutableArray<ParameterDescription> Parameters { get; init; }
Property Value
Type
The type the member returns, or null for one that returns none: a Sub, a Property Let, a Property Set.
public string? Type { get; init; }