dictionary class : Remove(string) method

Description

Removes the value with the specified key.

Syntax

dictionaryInstance.Remove(string key)

Arguments

ClassNameDescription
stringkeyKey to be searched.

Return value

ClassDescription
boolValue that indicates whether the removing was success.

Sample code

//anyDictionary is a instance of dictionary{string} type.

bool success = anyDictionary.Remove("ww");

Notes

It's a wrapper of the System.Collections.Generic.Dictionary<TKey, TValue>.Remove(TKey).

Links for reference

Copyright © Rice All rights reserved.