TargetDictionary Class

This is a base class used for a collection of targets indexed by member ID

Definition

Namespace: Sandcastle.Tools.BuildComponents.Targets
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2025.3.22.0
[SerializableAttribute]
public abstract class TargetDictionary : IDictionary<string, Target>, 
	ICollection<KeyValuePair<string, Target>>, IEnumerable<KeyValuePair<string, Target>>, 
	IEnumerable, IDisposable
Inheritance
Object    TargetDictionary
Derived
Implements
ICollection<KeyValuePair<String, Target>>, IDictionary<String, Target>, IEnumerable<KeyValuePair<String, Target>>, IEnumerable, IDisposable

Constructors

TargetDictionary Constructor

Properties

BuildComponent This read-only property returns the build component that owns the target dictionary
CountGets the number of elements contained in the ICollection<T>.
DictionaryId This is used to get or set the target dictionary's unique ID
DirectoryPath This is used to get or set the path to the target files
FilePattern This is used to get or set the file pattern to use when searching for target files
IsDisposed This read-only property can be used to determine whether or not the target dictionary has been disposed.
IsReadOnlyGets a value indicating whether the ICollection<T> is read-only.
ItemGets or sets the element with the specified key.
KeysGets an ICollection<T> containing the keys of the IDictionary<TKey, TValue>.
NamespaceFileFilter This read-only property returns any optional namespace files used to filter what gets loaded
Recurse This is used to get or set whether to recurse into subfolders of DirectoryPath when loading target files.
ValuesGets an ICollection<T> containing the values in the IDictionary<TKey, TValue>.

Methods

Add(KeyValuePair<String, Target>)Adds an item to the ICollection<T>.
Add(String, Target)Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
ClearRemoves all items from the ICollection<T>.
ContainsDetermines whether the ICollection<T> contains a specific value.
ContainsKeyDetermines whether the IDictionary<TKey, TValue> contains an element with the specified key.
CopyToCopies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Dispose() This implements the Dispose() interface to properly dispose of the target dictionary
Dispose(Boolean) This can be overridden by derived classes to add their own disposal code if necessary.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize This handles garbage collection to ensure proper disposal of the target dictionary if not done explicitly with Dispose().
(Overrides Object.Finalize())
GetEnumeratorReturns an enumerator that iterates through the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
LoadTargetDictionary This helper method can be called to find all target files and load them into the dictionary
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Remove(KeyValuePair<String, Target>)Removes the first occurrence of a specific object from the ICollection<T>.
Remove(String)Removes the element with the specified key from the IDictionary<TKey, TValue>.
ReportCacheStatistics This can be overridden in derived classes to report cache usage statistics after the build
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetValueGets the value associated with the specified key.

See Also