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.2.18.0
public sealed class TargetTypeDictionary : IDictionary<string, Target>, 
	ICollection<KeyValuePair<string, Target>>, IEnumerable<KeyValuePair<string, Target>>, 
	IEnumerable, IDisposable
Inheritance
Object    TargetTypeDictionary
Implements
ICollectionKeyValuePairString, Target, IDictionaryString, Target, IEnumerableKeyValuePairString, 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 ICollectionT.
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.
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 ICollectionT containing the values in the IDictionaryTKey, TValue.

Methods

Add(KeyValuePairString, Target)Adds an item to the ICollectionT.
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 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 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(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.
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