Target Type DictionaryItem Property
Gets or sets the element with the specified key.
Definition
Namespace: Sandcastle.Tools.BuildComponents.Targets
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2026.1.20.0
If not found, this implementation returns null.
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2026.1.20.0
C#
public Target this[
string key
] { get; set; }VB
Public Default Property Item (
key As String
) As Target
Get
SetC++
public:
virtual property Target^ default[String^ key] {
Target^ get (String^ key) sealed;
void set (String^ key, Target^ value) sealed;
}F#
abstract Item : Target with get, set
override Item : Target with get, setParameters
- key String
- The key of the element to get or set.
Return Value
TargetIf not found, this implementation returns null.
Implements
IDictionaryTKey, TValueItemTKeyExceptions
| ArgumentNullException | key is . |
| KeyNotFoundException | The property is retrieved and key is not found. |
| NotSupportedException | The property is set and the IDictionaryTKey, TValue is read-only. |