TargetTypeDictionary Class
Definition
- Assembly
- Sandcastle.Tools.BuildComponents.dll
This is a dictionary used to contain common target dictionaries with their associated link type
public sealed class TargetTypeDictionary : IDictionary<string, Target>, ICollection<KeyValuePair<string, Target>>, IEnumerable<KeyValuePair<string, Target>>, IEnumerable, IDisposable
- Inheritance
-
TargetTypeDictionary
- Implements
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
| TargetTypeDictionary() |
Constructor |
Properties
| Count | |
| IsReadOnly | |
| Keys | |
| 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. |
| this[string] | |
| Values |
Methods
| Add(KeyValuePair<string, Target>) | |
| Add(ReferenceLinkType, TargetDictionary) |
Add a target type dictionary to the collection |
| Add(string, Target) | |
| Clear() | |
| Contains(KeyValuePair<string, Target>) | |
| ContainsKey(string) | |
| CopyTo(KeyValuePair<string, Target>[], int) | |
| Dispose() |
This implements the Dispose() interface to properly dispose of the target dictionaries |
| GetEnumerator() | |
| Remove(KeyValuePair<string, Target>) | |
| Remove(string) | |
| TryGetValue(string, out Target) | |
| TryGetValue(string, out Target, out ReferenceLinkType) |
This attempts to retrieve the item with the specified key, returning it along with the reference link type with which it is associated. |