Target DictionaryRemove(String) Method
Removes the element with the specified key from the IDictionaryTKey, TValue.
Definition
Namespace: Sandcastle.Tools.BuildComponents.Targets
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2026.1.20.0
if the element is successfully removed; otherwise, . This method also returns if key was not found in the original IDictionaryTKey, TValue.
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2026.1.20.0
C#
public bool Remove(
string key
)VB
Public Function Remove (
key As String
) As BooleanC++
public:
virtual bool Remove(
String^ key
) sealedF#
abstract Remove :
key : string -> bool
override Remove :
key : string -> bool Parameters
- key String
- The key of the element to remove.
Return Value
Booleanif the element is successfully removed; otherwise, . This method also returns if key was not found in the original IDictionaryTKey, TValue.
Implements
IDictionaryTKey, TValueRemove(TKey)Remarks
This method is not implemented as targets are never removed
Exceptions
| ArgumentNullException | key is . |
| NotSupportedException | The IDictionaryTKey, TValue is read-only. |