Interface ILibrarySource
Where the descriptions of libraries are found: by the name of the library, or by the identity of the type library a reference means (LibraryIdentity).
public interface ILibrarySource
Properties
Names
The names of the libraries the source has descriptions of, each once; none for a source that cannot say.
IEnumerable<string> Names { get; }
Property Value
Methods
DescriptionsOf(string)
The descriptions the source has of libraries of a name: the library of the name (TryGet(string, out LibraryDescription?)) and every other type library of that name it describes.
IEnumerable<LibraryDescription> DescriptionsOf(string name)
Parameters
namestringThe name of the libraries.
Returns
Exceptions
- InvalidDataException
The source has one, and it cannot be read.
TryGet(LibraryIdentity, out LibraryDescription?)
Gets the description of the library an identity means: the library of the name when it gives no identifier, and otherwise, of the descriptions of the name, the one made from a type library of that identifier and a version it accepts (Choose(IEnumerable<LibraryDescription>)).
bool TryGet(LibraryIdentity identity, out LibraryDescription? description)
Parameters
identityLibraryIdentityThe library, as a reference or a dependency asks for it.
descriptionLibraryDescriptionThe description.
Returns
Exceptions
- InvalidDataException
The source has one of the name, and it cannot be read.
TryGet(string, out LibraryDescription?)
Gets the description of the library of a name: the one a reference that gives no identifier finds.
bool TryGet(string name, out LibraryDescription? description)
Parameters
namestringThe name of the library; the case of it does not matter, as it does not in VBA.
descriptionLibraryDescriptionThe description.
Returns
Exceptions
- InvalidDataException
The source has one, and it cannot be read.
TryGetByGuid(Guid, out LibraryDescription?)
Gets the description of the library a type library's identifier names: the library a .vbp references by its {GUID}.
bool TryGetByGuid(Guid guid, out LibraryDescription? description)
Parameters
guidGuidThe identifier the machine gave the library (Guid).
descriptionLibraryDescriptionThe description; of the highest version, when the source describes several.