Target 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 abstract Target this[
string key
] { get; set; }VB
Public MustOverride Default Property Item (
key As String
) As Target
Get
SetC++
public:
virtual property Target^ default[String^ key] {
Target^ get (String^ key) abstract;
void set (String^ key, Target^ value) abstract;
}F#
abstract 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. |