Table of Contents

Interface ILibrarySource

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

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

IEnumerable<string>

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

name string

The name of the libraries.

Returns

IEnumerable<LibraryDescription>

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

identity LibraryIdentity

The library, as a reference or a dependency asks for it.

description LibraryDescription

The description.

Returns

bool

false when the source has no description the identity means.

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

name string

The name of the library; the case of it does not matter, as it does not in VBA.

description LibraryDescription

The description.

Returns

bool

false when the source has no library of the name.

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

guid Guid

The identifier the machine gave the library (Guid).

description LibraryDescription

The description; of the highest version, when the source describes several.

Returns

bool

false when no description of the source was made from a library of that identifier.