1 write to Data
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.Stampede.cs (1)
103Data = { { "CacheKey", key } }
147 references to Data
Aspire.Hosting (2)
Dcp\DcpExecutor.cs (2)
1723resourceLogger.LogCritical(ex, "Failed to apply argument value '{ArgKey}'. A dependency may have failed to start.", ex.Data["ArgKey"]); 1724_logger.LogDebug(ex, "Failed to apply argument value '{ArgKey}' to '{ResourceName}'. A dependency may have failed to start.", ex.Data["ArgKey"], modelResource.Name);
dotnet-svcutil-lib (17)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
491fieldToValueDictionary.Add("_data", value.Data);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (4)
171if (exception.Data != null && exception.Data.Count > 0) 174foreach (object dataItem in exception.Data.Keys) 178xml.WriteElementString(DiagnosticStrings.ValueTag, XmlEncode(exception.Data[dataItem].ToString()));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (5)
295if (exception.Data != null && exception.Data.Count > 0) 364foreach (object dataItem in exception.Data.Keys) 368if (exception.Data[dataItem] == null) 374xml.WriteElementString(DiagnosticStrings.ValueTag, XmlEncode(exception.Data[dataItem].ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingFormat.cs (3)
157if (exception.Data.Contains(FramingEncodingString.ExceptionKey)) 159framingFault = exception.Data[FramingEncodingString.ExceptionKey] as string; 171exception.Data[FramingEncodingString.ExceptionKey] = framingFault;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
182exception.Data.Add(HttpChannelUtilities.HttpStatusCodeExceptionKey, statusCode); 185exception.Data.Add(HttpChannelUtilities.HttpStatusDescriptionExceptionKey, statusDescription);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (2)
1685if (ex.Data.Contains(FailedReferenceTypeExceptionKey)) 1687failedReferenceType = ex.Data[FailedReferenceTypeExceptionKey] as Type;
Microsoft.AspNetCore.Authentication.OAuth (9)
OAuthHandler.cs (6)
100deniedEx.Data["error"] = error.ToString(); 101deniedEx.Data["error_description"] = errorDescription.ToString(); 102deniedEx.Data["error_uri"] = errorUri.ToString(); 119ex.Data["error"] = error.ToString(); 120ex.Data["error_description"] = errorDescription.ToString(); 121ex.Data["error_uri"] = errorUri.ToString();
OAuthTokenResponse.cs (3)
119exception.Data["error"] = error.ToString(); 120exception.Data["error_description"] = errorDescription.ToString(); 121exception.Data["error_uri"] = errorUri.ToString();
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectHandler.cs (3)
1529ex.Data["error"] = message.Error; 1530ex.Data["error_description"] = description; 1531ex.Data["error_uri"] = errorUri;
Microsoft.AspNetCore.Authentication.Test (21)
GoogleTests.cs (12)
464Assert.True(ex.Data.Contains("error"), "error"); 465Assert.True(ex.Data.Contains("error_description"), "error_description"); 466Assert.True(ex.Data.Contains("error_uri"), "error_uri"); 467Assert.Equal("access_denied", ex.Data["error"]); 468Assert.Equal("whyitfailed", ex.Data["error_description"]); 469Assert.Equal("https://example.com/fail", ex.Data["error_uri"]); 501Assert.True(ex.Data.Contains("error"), "error"); 502Assert.True(ex.Data.Contains("error_description"), "error_description"); 503Assert.True(ex.Data.Contains("error_uri"), "error_uri"); 504Assert.Equal("itfailed", ex.Data["error"]); 505Assert.Equal("whyitfailed", ex.Data["error_description"]); 506Assert.Equal("https://example.com/fail", ex.Data["error_uri"]);
OAuthTests.cs (3)
457Assert.Equal("incorrect_client_credentials", context.Failure.Data["error"]); 458Assert.Equal("The client_id and/or client_secret passed are incorrect.", context.Failure.Data["error_description"]); 459Assert.Equal("https://example.com/troubleshooting-oauth-app-access-token-request-errors/#incorrect-client-credentials", context.Failure.Data["error_uri"]);
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (6)
81Assert.True(ex.Data.Contains("error"), "error"); 82Assert.True(ex.Data.Contains("error_description"), "error_description"); 83Assert.True(ex.Data.Contains("error_uri"), "error_uri"); 84Assert.Equal("itfailed", ex.Data["error"]); 85Assert.Equal("whyitfailed", ex.Data["error_description"]); 86Assert.Equal("https://example.com/fail", ex.Data["error_uri"]);
Microsoft.Build.Framework (1)
BuildException\BuildExceptionBase.cs (1)
112Debug.Assert((exception.Data?.Count ?? 0) == 0,
Microsoft.CodeAnalysis (4)
InternalUtilities\FatalError.cs (4)
263if (exception.Data[s_reportedMarker] != null) 268if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null) 273if (!exception.Data.IsReadOnly) 275exception.Data[s_reportedMarker] = s_reportedMarker;
Microsoft.CodeAnalysis.CodeStyle (5)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (4)
263if (exception.Data[s_reportedMarker] != null) 268if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null) 273if (!exception.Data.IsReadOnly) 275exception.Data[s_reportedMarker] = s_reportedMarker;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
75exception.Data["ContinuationFunction"] = (methodInfo?.DeclaringType?.FullName ?? "?") + "::" + (methodInfo?.Name ?? "?");
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (4)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (4)
263if (exception.Data[s_reportedMarker] != null) 268if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null) 273if (!exception.Data.IsReadOnly) 275exception.Data[s_reportedMarker] = s_reportedMarker;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (4)
263if (exception.Data[s_reportedMarker] != null) 268if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null) 273if (!exception.Data.IsReadOnly) 275exception.Data[s_reportedMarker] = s_reportedMarker;
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (4)
263if (exception.Data[s_reportedMarker] != null) 268if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null) 273if (!exception.Data.IsReadOnly) 275exception.Data[s_reportedMarker] = s_reportedMarker;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
75exception.Data["ContinuationFunction"] = (methodInfo?.DeclaringType?.FullName ?? "?") + "::" + (methodInfo?.Name ?? "?");
Microsoft.CodeAnalysis.Threading.Package (4)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (4)
263if (exception.Data[s_reportedMarker] != null) 268if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null) 273if (!exception.Data.IsReadOnly) 275exception.Data[s_reportedMarker] = s_reportedMarker;
Microsoft.CodeAnalysis.Workspaces (5)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (4)
263if (exception.Data[s_reportedMarker] != null) 268if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null) 273if (!exception.Data.IsReadOnly) 275exception.Data[s_reportedMarker] = s_reportedMarker;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
75exception.Data["ContinuationFunction"] = (methodInfo?.DeclaringType?.FullName ?? "?") + "::" + (methodInfo?.Name ?? "?");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (4)
263if (exception.Data[s_reportedMarker] != null) 268if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null) 273if (!exception.Data.IsReadOnly) 275exception.Data[s_reportedMarker] = s_reportedMarker;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\ExceptionHelpersTests.cs (1)
65Assert.NotEmpty(e.Data);
Microsoft.Maui (1)
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (1)
29 Data["JavaScriptErrorName"] = name;
Microsoft.ML.Core (14)
Environment\HostEnvironmentBase.cs (6)
70ex.Data[ExceptionContextKeys.ThrowingComponent] = ShortName; 71ex.Data[ExceptionContextKeys.ParentComponent] = ParentFullName; 200ex.Data[ExceptionContextKeys.ThrowingComponent] = Parent.ShortName; 201ex.Data[ExceptionContextKeys.ParentComponent] = Parent.ParentFullName; 202ex.Data[ExceptionContextKeys.Phase] = ShortName; 519ex.Data[ExceptionContextKeys.ThrowingComponent] = "Environment";
Utilities\Contracts.cs (8)
99/// <see cref="Exception.Data"/> to 1. 105ex.Data[IsMarkedKey] = 1; 115return ex.Data.Contains(IsMarkedKey); 129if (!ex.Data.Contains(SensitivityKey)) 132innerSensitivity = (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.None; 133ex.Data[SensitivityKey] = innerSensitivity | sensitivity; 150if (!ex.Data.Contains(SensitivityKey)) 152return (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.Unknown;
Microsoft.ML.CpuMath (8)
src\Microsoft.ML.Core\Utilities\Contracts.cs (8)
99/// <see cref="Exception.Data"/> to 1. 105ex.Data[IsMarkedKey] = 1; 115return ex.Data.Contains(IsMarkedKey); 129if (!ex.Data.Contains(SensitivityKey)) 132innerSensitivity = (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.None; 133ex.Data[SensitivityKey] = innerSensitivity | sensitivity; 150if (!ex.Data.Contains(SensitivityKey)) 152return (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.Unknown;
Microsoft.ML.Maml (1)
MAML.cs (1)
276foreach (DictionaryEntry kvp in ex.Data)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
997IOException.Data.Add(Entry.Key, Entry.Value)
MSBuildTaskHost (1)
BuildExceptionBase.cs (1)
112Debug.Assert((exception.Data?.Count ?? 0) == 0,
PresentationCore (9)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (3)
3389e.Data[ExceptionContext.Key] = new ExceptionContext(e.Data[ExceptionContext.Key], e.StackTrace, plsrun, lsrun); 3396e.Data[ExceptionContext.Key] = new ExceptionContext(null, methodName, plsrun, lsrun);
System\Windows\Ink\StrokeCollection.cs (3)
388ae.Data.Add("System.Windows.Ink.StrokeCollection", ""); 480ae.Data.Add("System.Windows.Ink.StrokeCollection", ""); 493ae.Data.Add("System.Windows.Ink.StrokeCollection", "");
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
3028ioe.Data.Add("System.Windows.Input.StylusLogic", "");
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (2)
342if (ex.Data.Contains("System.Windows.Input.StylusLogic")) 476if (ex.Data.Contains("System.Windows.Input.StylusLogic"))
PresentationFramework (3)
MS\Internal\Ink\EraserBehavior.cs (1)
417if (!ex.Data.Contains("System.Windows.Ink.StrokeCollection"))
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (2)
264IDictionary dict = ex.Data; 284IDictionary dict = ex.Data;
System.ComponentModel.Composition (8)
System\ComponentModel\Composition\MetadataViewProvider.cs (8)
105ex.InnerException.Data[MetadataViewGenerator.MetadataViewType], 106ex.InnerException.Data[MetadataViewGenerator.MetadataItemKey], 107ex.InnerException.Data[MetadataViewGenerator.MetadataItemValue], 108ex.InnerException.Data[MetadataViewGenerator.MetadataItemSourceType], 109ex.InnerException.Data[MetadataViewGenerator.MetadataItemTargetType]), ex); 116ex.InnerException.Data[MetadataViewGenerator.MetadataViewType], 117ex.InnerException.Data[MetadataViewGenerator.MetadataItemKey], 118ex.InnerException.Data[MetadataViewGenerator.MetadataItemTargetType]), ex);
System.Linq.Expressions (2)
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (2)
145exception.Data[typeof(InterpretedFrameInfo)] ??= new List<InterpretedFrameInfo>(GetStackTraceDebugInfo()).ToArray(); 150return exception.Data[typeof(InterpretedFrameInfo)] as InterpretedFrameInfo[];
System.Net.Http (3)
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
97ex.Data["HTTP2_ENABLED"] = false;
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
456exception.Data["SETTINGS_ENABLE_CONNECT_PROTOCOL"] = false; 859ex.Data["HTTP2_ENABLED"] = false;
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
138((ex.HttpRequestError == HttpRequestError.ExtendedConnectNotSupported || ex.Data.Contains("HTTP2_ENABLED"))
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (2)
247e.Data["MemFailPointState"] = new MemoryFailPointState(sizeInMegabytes, segmentSize, 259e.Data["MemFailPointState"] = new MemoryFailPointState(sizeInMegabytes, segmentSize,
System.ServiceModel.NetFramingBase (3)
System\ServiceModel\Channels\FramingFormat.cs (3)
158if (exception.Data.Contains(FramingEncodingString.ExceptionKey)) 160framingFault = exception.Data[FramingEncodingString.ExceptionKey] as string; 172exception.Data[FramingEncodingString.ExceptionKey] = framingFault;
System.Threading.Tasks.Dataflow (1)
Internal\Common.cs (1)
279IDictionary data = exception.Data;