dotnet / dotnet/dotnet-api-docs

Any exceptions?

Open
#1,857 0 comments 0 reactions 0 assignees View on GitHub
area-WinForms dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

I'm guessing that this doesn't throw exceptions., for example, if the key is not in the collection. It would be helpful if the behavior for such cases were stated explicitly.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: f6f41c86-49f0-4399-5738-c5ae07a65ccd
* Version Independent ID: 59c05b93-845c-28f8-60fb-1457e797da45
* Content: [Control.ControlCollection.RemoveByKey(String) Method (System.Windows.Forms)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.control.controlcollection.removebykey?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(System.Windows.Forms.Control.ControlCollection.RemoveByKey);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.5.2);k(DevLang-csharp)%26rd%3Dtrue&view=netframework-4.7.2)
* Content Source: [xml/System.Windows.Forms/Control+ControlCollection.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Forms/Control+ControlCollection.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.