TargetTypeDictionary Class

This is a dictionary used to contain common target dictionaries with their associated link type

Definition

Namespace: Sandcastle.Tools.BuildComponents.Targets
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2024.12.21.0
public sealed class TargetTypeDictionary : IDictionary<string, Target>, 
	ICollection<KeyValuePair<string, Target>>, IEnumerable<KeyValuePair<string, Target>>, 
	IEnumerable, IDisposable
Inheritance
Object    TargetTypeDictionary
Implements
ICollection<KeyValuePair<String, Target>>, IDictionary<String, Target>, IEnumerable<KeyValuePair<String, Target>>, IEnumerable, IDisposable

Remarks

The behavior of this dictionary is to return null if a target ID is not found and to replace existing entries if a duplicate ID is added. The structure allows access to all reference link targets within a set of multiple target dictionaries, each with a different reference link type. The target dictionary instances can be easily shared across multiple instances of the reference link components.

Constructors

Properties

CountGets the number of elements contained in the ICollection<T>.
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>.
NeedsMemberIdUrlResolver This read-only property is used to determine if any of the target dictionaries require the member ID URL resolver to look up links.
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(ReferenceLinkType, TargetDictionary) Add a target type dictionary to the collection
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 dictionaries
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
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)
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>.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryGetValue(String, Target)Gets the value associated with the specified key.
TryGetValue(String, Target, ReferenceLinkType) This attempts to retrieve the item with the specified key, returning it along with the reference link type with which it is associated.

See Also