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: 2024.12.21.0
[SerializableAttribute]
public abstract class TargetDictionary : IDictionary<string, Target>, 
	ICollection<KeyValuePair<string, Target>>, IEnumerable<KeyValuePair<string, Target>>, 
	IEnumerable, IDisposable
Inheritance
Object    TargetDictionary
Derived
Implements
ICollectionKeyValuePairString, Target, IDictionaryString, Target, IEnumerableKeyValuePairString, 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 ICollectionT.
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 ICollectionT is read-only.
ItemGets or sets the element with the specified key.
KeysGets an ICollectionT containing the keys of the IDictionaryTKey, 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 ICollectionT containing the values in the IDictionaryTKey, TValue.

Methods

Add(KeyValuePairString, Target)Adds an item to the ICollectionT.
Add(String, Target)Adds an element with the provided key and value to the IDictionaryTKey, TValue.
ClearRemoves all items from the ICollectionT.
ContainsDetermines whether the ICollectionT contains a specific value.
ContainsKeyDetermines whether the IDictionaryTKey, TValue contains an element with the specified key.
CopyToCopies the elements of the ICollectionT 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 ObjectFinalize)
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(KeyValuePairString, Target)Removes the first occurrence of a specific object from the ICollectionT.
Remove(String)Removes the element with the specified key from the IDictionaryTKey, 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