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.

public interface ILibrarySource

Properties

Names

The names of the libraries the source has descriptions of; none for a source that cannot say.

IEnumerable<string> Names { get; }

Property Value

IEnumerable<string>

Methods

TryGet(string, out LibraryDescription?)

Gets the description of a library.

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.

Returns

bool

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