94 instantiations of KeyNotFoundException
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new KeyNotFoundException());
Microsoft.AspNetCore.Components.Forms (1)
EditContextProperties.cs (1)
25get => _contents is null ? throw new KeyNotFoundException() : _contents[key];
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.AspNetCore.Http (1)
HeaderDictionary.cs (1)
380throw new KeyNotFoundException();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
AttributeDictionary.cs (1)
31throw new KeyNotFoundException();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
172static void ThrowNotFound() => throw new KeyNotFoundException();
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
205throw new KeyNotFoundException(key);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.cs (1)
107throw new KeyNotFoundException();
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
2396throw new KeyNotFoundException($"No invocation with id '{invocationId}' could be found."); 2408throw new KeyNotFoundException($"No invocation with id '{invocationId}' could be found.");
Microsoft.AspNetCore.SignalR.Core (1)
StreamTracker.cs (1)
71throw new KeyNotFoundException($"No stream with id '{streamId}' could be found.");
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
81return index == -1 ? throw new KeyNotFoundException() : (object)_values[index];
Microsoft.Build.Framework (1)
ThrowHelper.cs (1)
215return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis (3)
Collections\SmallDictionary.cs (1)
94throw new KeyNotFoundException($"Could not find key {key}");
InternalUtilities\ConcurrentLruCache.cs (1)
153throw new KeyNotFoundException();
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.CodeStyle (3)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
1047throw new KeyNotFoundException($"Syntax tree not found with file path: {tree.FilePath}");
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionItem.cs (1)
138throw new KeyNotFoundException($"Property {name} not found");
Microsoft.CodeAnalysis.Workspaces (3)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
153throw new KeyNotFoundException();
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.DotNet.Build.Tasks.Workloads (1)
EmbeddedTemplates.cs (1)
37throw new KeyNotFoundException(string.Format(Strings.TemplateNotFound, filename));
Microsoft.Extensions.AI (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1105public int this[string key] => key == nameof(BaseValue) ? BaseValue : throw new KeyNotFoundException();
Microsoft.Extensions.AI.AzureAIInference (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Ollama (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.AI.OpenAI (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.Http.Diagnostics (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.ServiceDiscovery (2)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
123throw new KeyNotFoundException($"The endpoint configuration section for service '{_serviceName}' endpoint '{endpointName}' has non-numeric keys."); 196throw new KeyNotFoundException($"The endpoint configuration section for service '{_serviceName}' endpoint '{endpointName}' has an invalid value with key '{section.Key}'.");
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.Logging.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.Metrics.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.MetricsReports.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Maui.Controls (1)
ResourceDictionary.cs (1)
232 throw new KeyNotFoundException($"The resource '{index}' is not present in the dictionary.");
Microsoft.VisualStudio.LanguageServices (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
153throw new KeyNotFoundException();
PresentationCore (2)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
687throw new KeyNotFoundException();
System\Windows\BinaryFormat\ClassRecord.cs (1)
39throw new KeyNotFoundException();
PresentationFramework (12)
MS\Internal\WeakDictionary.cs (1)
252throw new KeyNotFoundException();
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
39throw new KeyNotFoundException();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (10)
128throw new KeyNotFoundException(); 140throw new KeyNotFoundException(SR.Format(SR.BamlAssemblyIdNotFound, assemblyId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS))); 157throw new KeyNotFoundException(SR.Format(SR.BamlTypeIdNotFound, typeId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS))); 174throw new KeyNotFoundException(SR.Format(SR.BamlTypeIdNotFound, typeId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS))); 187throw new KeyNotFoundException(); 225throw new KeyNotFoundException(); 271throw new KeyNotFoundException(); 289throw new KeyNotFoundException(); 307throw new KeyNotFoundException(); 327throw new KeyNotFoundException();
Shared (2)
EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
1105public int this[string key] => key == nameof(BaseValue) ? BaseValue : throw new KeyNotFoundException();
System.Collections (3)
System\Collections\Generic\SortedDictionary.cs (1)
115throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System\Collections\Generic\SortedList.cs (1)
578throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System\Collections\ThrowHelper.cs (1)
15throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));
System.Collections.Concurrent (2)
System\Collections\Concurrent\ConcurrentDictionary.cs (2)
1115throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString())); 2385get => TryGetValue(key, out TValue? value) ? value : throw new KeyNotFoundException();
System.Collections.Immutable (2)
System\Collections\ThrowHelper.cs (2)
30throw new KeyNotFoundException(); 34throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));
System.Linq.Expressions (2)
System\Linq\Expressions\Error.cs (1)
54return new KeyNotFoundException(Strings.KeyDoesNotExistInExpando(p0));
System\Linq\Expressions\Interpreter\Utilities.cs (1)
280throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System.Net.Http (1)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (1)
51throw new KeyNotFoundException(SR.net_http_headers_not_found);
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
68throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key.ToString()));
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (1)
44throw new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
740return new KeyNotFoundException(SR.Format(SR.Arg_KeyNotFoundWithKey, key));
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\Serializer\ClassRecord.cs (1)
42throw new KeyNotFoundException();
System.Text.Json (4)
System\Text\Json\Document\JsonElement.cs (3)
145throw new KeyNotFoundException(); 183throw new KeyNotFoundException(); 223throw new KeyNotFoundException();
System\Text\Json\ThrowHelper.Node.cs (1)
28throw new KeyNotFoundException();
System.Windows.Forms (1)
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (1)
77(_, _) => throw new KeyNotFoundException()
76 references to KeyNotFoundException
BinaryFormatTests (1)
FormatTests\FormattedObject\RecordMapTests.cs (1)
31func.Should().Throw<KeyNotFoundException>();
Infrastructure.Common (1)
TestProperties.cs (1)
46/// <exception cref="KeyNotFoundException">The request property is not available.</exception>
Microsoft.AspNetCore.Components.Forms.Tests (3)
EditContextTest.cs (3)
281Assert.Throws<KeyNotFoundException>(() => editContext.Properties[key1]); 290Assert.Throws<KeyNotFoundException>(() => editContext.Properties[key3]); 336Assert.Throws<KeyNotFoundException>(() => editContext.Properties[key]);
Microsoft.AspNetCore.Http.Tests (1)
HeaderDictionaryTests.cs (1)
133Assert.Throws<KeyNotFoundException>(() => asIDictionary["Header1"]);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
AttributeDictionaryTest.cs (1)
387Assert.Throws<KeyNotFoundException>(() => attributes["nada"]);
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
108Assert.Throws<KeyNotFoundException>(() => env[key]);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
HttpRequestHeadersTests.cs (3)
97Assert.Throws<KeyNotFoundException>(() => headers["custom"]); 98Assert.Throws<KeyNotFoundException>(() => headers["host"]); 99Assert.Throws<KeyNotFoundException>(() => headers["Content-Length"]);
Microsoft.Build (6)
BackEnd\Components\Caching\ConfigCache.cs (1)
56/// <exception cref="KeyNotFoundException">Returned if a configuration with the specified id is not in the cache.</exception>
BackEnd\Components\RequestBuilder\Lookup.cs (1)
1159/// <exception cref="System.Collections.Generic.KeyNotFoundException">When <see cref="KeepOnlySpecified"/> if false, this is thrown if the metadata
Collections\RetrievableEntryHashSet\IRetrievableEntryHashSet.cs (2)
29/// <exception cref="KeyNotFoundException">Thrown if no item with the given name is present in the collection.</exception> 39/// <exception cref="KeyNotFoundException">Thrown if no item with the given name is present in the collection.</exception>
Construction\Solution\SolutionFile.cs (2)
641catch (Exception e) when (e is JsonException || e is KeyNotFoundException || e is InvalidOperationException) 663catch (Exception e) when (e is JsonException || e is KeyNotFoundException || e is InvalidOperationException)
Microsoft.Build.Engine.UnitTests (3)
BackEnd\BuildResult_Tests.cs (2)
137Assert.Throws<KeyNotFoundException>(() => 148Assert.Throws<KeyNotFoundException>(() =>
CopyOnWriteDictionary_Tests.cs (1)
46Assert.Throws<KeyNotFoundException>(() =>
Microsoft.Build.Framework (1)
ThrowHelper.cs (1)
213private static KeyNotFoundException GetKeyNotFoundException(object? key)
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
227private static KeyNotFoundException GetKeyNotFoundException(object? key)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
227private static KeyNotFoundException GetKeyNotFoundException(object? key)
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\ThrowHelper.cs (1)
227private static KeyNotFoundException GetKeyNotFoundException(object? key)
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
1043catch (KeyNotFoundException)
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableArrayExtensionsTests.cs (4)
314Assert.Throws<KeyNotFoundException>(() => dict["One"]); 320Assert.Throws<KeyNotFoundException>(() => dict[""]); 326Assert.Throws<KeyNotFoundException>(() => dict["THREE"]); 332Assert.Throws<KeyNotFoundException>(() => dict["four"]);
Collections\ImmutableDictionaryBuilderTestBase.cs (1)
74Assert.Throws<KeyNotFoundException>(() => builder["foo"]);
Collections\ImmutableDictionaryTestBase.cs (2)
107Assert.Throws<KeyNotFoundException>(() => this.Empty<int, int>()[3]); 160Assert.Throws<KeyNotFoundException>(() => dictionary["a"]);
Collections\ImmutableSegmentedDictionaryTest.cs (2)
299var exception = Assert.Throws<KeyNotFoundException>(() => map[missingKey]);
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
227private static KeyNotFoundException GetKeyNotFoundException(object? key)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
227private static KeyNotFoundException GetKeyNotFoundException(object? key)
Microsoft.Maui.Controls (3)
BindingExpression.cs (1)
731 if (ex.InnerException is KeyNotFoundException || ex.InnerException is IndexOutOfRangeException || ex.InnerException is ArgumentOutOfRangeException)
OrderedDictionary.cs (1)
187 /// <exception cref="KeyNotFoundException"><paramref name="key" /> was not found attempting to get.</exception>
TypedBinding.cs (1)
316 catch (Exception ex) when (ex is NullReferenceException || ex is KeyNotFoundException || ex is IndexOutOfRangeException || ex is ArgumentOutOfRangeException)
Microsoft.Maui.Controls.Xaml (1)
RegisterXNamesVisitor.cs (1)
45 catch (KeyNotFoundException knfe)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
100[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.KeyNotFoundException))]
netstandard (1)
netstandard.cs (1)
123[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.KeyNotFoundException))]
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
22catch (Exception ex) when (ex is KeyNotFoundException or InvalidCastException)
PresentationFramework (1)
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
191catch (KeyNotFoundException)
Shared.Tests (2)
EmptyCollections\EmptyReadonlyDictionaryTests.cs (2)
17Assert.Throws<KeyNotFoundException>(() => instance[5]); 46Assert.Throws<KeyNotFoundException>(() => dict[1]);
System.Collections (2)
System\Collections\Generic\OrderedDictionary.cs (2)
361/// <returns>The value associated with the specified key. If the specified key is not found, a get operation throws a <see cref="KeyNotFoundException"/>, and a set operation creates a new element with the specified key.</returns> 363/// <exception cref="KeyNotFoundException">The property is retrieved and <paramref name="key"/> does not exist in the collection.</exception>
System.Collections.Concurrent (4)
System\Collections\Concurrent\ConcurrentDictionary.cs (4)
1082/// <see cref="KeyNotFoundException"/>, and a set operation creates a new element with the specified key. 1087/// <exception cref="KeyNotFoundException"> 2379/// a <see cref="KeyNotFoundException"/>, and a set operation creates a new element with the specified key. 2382/// <exception cref="KeyNotFoundException">The property is retrieved and alternate key does not exist in the collection.</exception>
System.Collections.Immutable (7)
System\Collections\Frozen\FrozenDictionary.AlternateLookup.cs (2)
98/// a <see cref="KeyNotFoundException"/>, and a set operation creates a new element with the specified key. 101/// <exception cref="KeyNotFoundException">The alternate key does not exist in the collection.</exception>
System\Collections\Frozen\FrozenDictionary.cs (1)
515/// <exception cref="KeyNotFoundException"><paramref name="key"/> does not exist in the collection.</exception>
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
405/// <exception cref="KeyNotFoundException">The property is retrieved and <paramref name="key"/> is not found.</exception>
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
203/// <exception cref="KeyNotFoundException">If the key is not present.</exception>
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
204/// <exception cref="KeyNotFoundException">If the key is not present.</exception>
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
292/// <exception cref="KeyNotFoundException">If the key is not present.</exception>
System.Formats.Nrbf (2)
System\Formats\Nrbf\ClassRecord.cs (2)
58/// <exception cref="KeyNotFoundException"><paramref name="memberName" /> does not refer to a known member. You can use <see cref="HasMember(string)"/> to check if a given member exists.</exception> 115/// <exception cref="KeyNotFoundException"><paramref name="memberName" /> does not refer to a known member. You can use <see cref="HasMember(string)"/> to check if given member exists.</exception>
System.Linq.Expressions (1)
System\Linq\Expressions\Error.cs (1)
52internal static KeyNotFoundException KeyDoesNotExistInExpando(object? p0)
System.Net.Http (1)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (1)
41/// <exception cref="KeyNotFoundException">The header was not contained in the collection.</exception>
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
707/// a <see cref="KeyNotFoundException"/>, and a set operation creates a new element with the specified key. 710/// <exception cref="KeyNotFoundException">The property is retrieved and alternate key does not exist in the collection.</exception>
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
738private static KeyNotFoundException GetKeyNotFoundException(object? key)
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
71catch (Exception ex) when (ex is KeyNotFoundException or InvalidCastException)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
91[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.KeyNotFoundException))]
System.Security.Cryptography.Cose (4)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (4)
70/// <exception cref="KeyNotFoundException">The property is retrieved and <paramref name="key"/> is not found.</exception> 88/// <exception cref="KeyNotFoundException"><paramref name="label"/> is not found.</exception> 97/// <exception cref="KeyNotFoundException"><paramref name="label"/> is not found.</exception> 116/// <exception cref="KeyNotFoundException"><paramref name="label"/> is not found.</exception>
System.Text.Json (3)
System\Text\Json\Document\JsonElement.cs (3)
124/// <exception cref="KeyNotFoundException"> 170/// <exception cref="KeyNotFoundException"> 209/// <exception cref="KeyNotFoundException">
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleRoleControlTypeMapTests.cs (1)
36Assert.Throws<KeyNotFoundException>(() => AccessibleRoleControlTypeMap.GetControlType(incorrectRole));