## KeyedCollection::Remove method


从容器中移除键。

```cpp
bool System::Collections::ObjectModel::KeyedCollection<TKey, TItem>::Remove(TKey key)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 键 | TKey | 要删除的键。 |

### ReturnValue

如果找到并删除键则返回 true，否则返回 false。

## 另见

* Class [KeyedCollection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.Page for C++](../../../)
