Implemented interface member:
method
GetType
System.Runtime.InteropServices._Exception.GetType()
118 references to GetType
mscorlib (12)
system\badimageformatexception.cs (1)
86String s = GetType().FullName + ": " + Message;
system\diagnostics\eventing\eventsource.cs (1)
2458ReportOutOfBandMessage(errorPrefix + ": " + innerEx.GetType() + ":" + innerEx.Message, true);
system\exception.cs (2)
241_className = GetType().ToString(); 601Contract.Assert(((_safeSerializationManager != null) || (this.GetType().Assembly == typeof(object).Assembly)),
system\io\fileloadexception.cs (1)
100String s = GetType().FullName + ": " + Message;
system\io\filenotfoundexception.cs (1)
87String s = GetType().FullName + ": " + Message;
system\runtime\interopservices\comexception.cs (1)
70String _className = GetType().ToString();
system\runtime\interopservices\externalexception.cs (1)
61String _className = GetType().ToString();
system\runtime\remoting\remotingsurrogateselector.cs (2)
341sb.Append(ex.GetType().FullName); 352serverFault = new ServerFault(msg.Exception.GetType().AssemblyQualifiedName, sb.ToString(), msg.Exception.StackTrace);
system\security\policy\policylevel.cs (1)
840message = ex.GetType().AssemblyQualifiedName;
system\threading\Tasks\TaskExceptionHolder.cs (1)
317var t = exceptions[i].SourceException.GetType();
PresentationBuildTasks (1)
Framework\System\Windows\Markup\XamlReaderHelper.cs (1)
1397!typeof(System.Xml.XmlException).IsAssignableFrom(innerException.GetType()))
PresentationCore (1)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (1)
440Type t = caughtException.GetType();
PresentationFramework (6)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
563if (exception0.GetType() == typeof(InvalidOperationException) &&
src\Framework\MS\Internal\Printing\Win32PrintDialog.cs (1)
135if (String.Equals(e.GetType().FullName, "System.Printing.PrintingNotSupportedException", StringComparison.Ordinal))
src\Framework\MS\Internal\TraceData.cs (1)
309return Format("{0} ({1})", ex.GetType().Name, AvTrace.AntiFormat(ex.Message));
src\Framework\System\Windows\Controls\DataErrorValidationRule.cs (1)
109ex.GetType().FullName,
src\Framework\System\Windows\Standard\ErrorCodes.cs (2)
478if (e.GetType() == typeof(COMException)) 492ConstructorInfo cons = e.GetType().GetConstructor(new[] { typeof(string) });
System (3)
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (1)
961message = t.GetType().Name;
net\System\Net\_Connection.cs (2)
3246if (exception.GetType() == typeof(ObjectDisposedException)) 3360if (exception.GetType() == typeof(ObjectDisposedException))
System.Activities (3)
System\Activities\Statements\TryCatch.cs (2)
249TD.TryCatchExceptionFromTry(this.DisplayName, propagatedException.GetType().ToString()); 319Type exceptionType = exception.GetType();
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
280throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CompiledExpressionsActivityException(e.GetType().FullName, this.settings.Activity.GetType().AssemblyQualifiedName, e.ToString())));
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\ServiceContractImporter.cs (1)
94throw new InvalidOperationException(e.Message + Environment.NewLine + Environment.NewLine + e.InnerException.GetType().ToString() + Environment.NewLine + e.InnerException.Message, e);
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (1)
275suspensionExceptionName = ((Exception)propertyValue.Value).GetType().ToString();
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
100ShowMessageBox(string.Format(CultureInfo.InvariantCulture, "{0}:\r\n{1}", err.GetType().Name, err.Message), MessageBoxImage.Error, err.StackTrace);
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
231MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1148MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error);
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
276errorTitle = err.GetType().Name;
System.AddIn (4)
System\Addin\Hosting\AddInStore.cs (2)
1231warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.InspectingAssemblyThrew, e.GetType().Name, e.Message, assemblyFileName)); 1339warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.InspectingAssemblyThrew, e.GetType().Name, e.Message, assemblyFileName));
System\Addin\Hosting\InspectionWorker.cs (2)
239retval.Warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.AssemblyLoadThrew, e.GetType().Name, e.Message, _assemblyFileName)); 324retval.Warnings.Add(String.Format(CultureInfo.CurrentCulture, Res.InspectingAssemblyThrew, e.GetType().Name, e.Message, _assemblyFileName));
System.Configuration (1)
System\Configuration\ConfigurationErrorsException.cs (1)
228_errors[i].GetType());
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
100ShowMessageBox(string.Format(CultureInfo.InvariantCulture, "{0}:\r\n{1}", err.GetType().Name, err.Message), MessageBoxImage.Error, err.StackTrace);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (1)
231MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1148MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
276errorTitle = err.GetType().Name;
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
378Type type = e.GetType(); 397Type type = e.GetType();
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (1)
1063if (_resError.GetType()==typeof(SqlClient.SqlException))
System.Data.DataSetExtensions (1)
System\Data\DataSetUtil.cs (1)
125Type type = e.GetType();
System.Data.Entity (2)
System\Data\Common\EntityUtil.cs (2)
1961Type type = e.GetType(); 1974Type type = e.GetType();
System.Data.Entity.Design (1)
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
246Type type = e.GetType();
System.Data.Services (3)
System\Data\Services\ErrorHandler.cs (2)
309string exceptionType = exception.GetType().FullName; 348string exceptionType = exception.GetType().FullName;
System\Data\Services\WebUtil.cs (1)
386Type type = e.GetType();
System.Data.SqlXml (1)
System\Xml\Xsl\XslException.cs (1)
66string result = this.GetType().FullName;
System.Runtime.Remoting (2)
channels\core\corechannel.cs (2)
159"CoreChannel.UpdateCachedIPAddresses caught exception '{0}'; \r\nMessage: {1}", exception.GetType().ToString(), exception.Message)); 1087InternalRemotingServices.RemotingTrace(e.GetType().FullName);
System.ServiceModel (15)
System\ServiceModel\Channels\Message.cs (1)
517return SR.GetString(SR.MessageBodyToStringError, e.GetType().ToString(), e.Message);
System\ServiceModel\Channels\ReceiveContext.cs (2)
111TD.ReceiveContextAbandonWithException(this.eventTraceActivity, this.GetType().ToString(), exception.GetType().ToString()); 452TD.ReceiveContextAbandonWithException(this.ReceiveContext.eventTraceActivity, this.GetType().ToString(), exception.GetType().ToString());
System\ServiceModel\Diagnostics\PeerNodeTraceRecord.cs (1)
231writer.WriteElementString("Exception", exception.GetType().ToString() + ":" + exception.Message);
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
386DiagnosticUtility.FailFast(string.Format(CultureInfo.InvariantCulture, "ICallContextInitializer.BeforeInvoke threw an exception of type {0}: {1}", e.GetType(), e.Message));
System\ServiceModel\Dispatcher\ErrorBehavior.cs (2)
197TD.ServiceException(null, error.ToString(), error.GetType().FullName); 205TD.ErrorHandlerInvoked(handlers[i].GetType().FullName, handledByThis, error.GetType().FullName);
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
48for (Type faultType = faultException.GetType(); faultType != typeof(FaultException); faultType = faultType.BaseType)
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
447Type exceptionType = e.GetType();
System\ServiceModel\ExceptionDetail.cs (1)
31this.type = exception.GetType().ToString();
System\ServiceModel\FaultException.cs (1)
455return SR.GetString(SR.SFxFaultExceptionToString3, this.GetType(), this.Message, this.detail != null ? this.detail.ToString() : String.Empty);
System\ServiceModel\Security\SecurityProtocol.cs (4)
822if ((exception.GetType() == typeof(MessageSecurityException) || exception.GetType().IsSubclassOf(typeof(MessageSecurityException))) 823|| (exception.GetType() == typeof(SecurityTokenException) || exception.GetType().IsSubclassOf(typeof(SecurityTokenException))))
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\UdpOutputChannel.cs (1)
974Fx.Assert(exception.GetType() == typeof(TimeoutException), "Exception on callback should always be TimeoutException");
System.ServiceModel.Internals (2)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
354xml.WriteElementString(DiagnosticStrings.ExceptionTypeTag, XmlEncode(exception.GetType().AssemblyQualifiedName));
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
759new Tuple<string, string> (DiagnosticStrings.ExceptionTypeTag, XmlEncode(exception.GetType().AssemblyQualifiedName)),
System.Transactions (1)
System\Transactions\Trace\DiagnosticTrace.cs (1)
693xml.WriteElementString(DiagnosticStrings.ExceptionTypeTag, DiagnosticTrace.XmlEncode(exception.GetType().AssemblyQualifiedName));
System.Web (14)
Configuration\CompilationSection.cs (1)
808Message = SR.GetString(SR.Config_base_report_exception_type, e.GetType().ToString()); // at least this is better than no message
ErrorFormatter.cs (1)
902string exceptionName = _initialException.GetType().FullName;
Hosting\AppDomainFactory.cs (1)
182Debug.Trace("internal", "AppDomainFactory::Create failed with " + e.GetType().FullName + ": " + e.Message + "\r\n" + e.StackTrace);
Hosting\IPipelineRuntime.cs (1)
292sb.Append(current.GetType().FullName);
Hosting\ProcessHost.cs (1)
346Debug.Trace("internal", "ProcessHost::ctor failed with " + e.GetType().FullName + ": " + e.Message + "\r\n" + e.StackTrace);
HttpResponse.cs (1)
1292string title = "[" + e.GetType().Name + "]";
Management\EventlogProvider.cs (1)
124dataFields.Add(exception.GetType().Name);
Management\SqlWebEventProvider.cs (1)
161sqlCommand.Parameters[n++].Value = (exception != null) ? exception.GetType().ToString() : Convert.DBNull;
Management\WebEvents.cs (4)
403Debug.Trace("WebEventRaiseError", "Error Event is raised; type=" + e.GetType().Name); 422e.GetType() == typeof(HttpException) && 1358formatter.AppendLine(WebBaseEvent.FormatResourceStringWithCache(SR.Webevent_event_exception_type, ex.GetType().ToString())); 1366fields.Add(new WebEventFieldData("ExceptionType", ErrorException.GetType().ToString(), WebEventFieldType.String));
Management\wmiprovider.cs (1)
209wmiData.exceptionType = exception.GetType().Name;
Util\Misc.cs (1)
80sb.Append(current.GetType().FullName);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
1079Type type = e.GetType();
System.Web.Extensions (1)
Script\Services\RestHandler.cs (1)
241writer.Write(JavaScriptSerializer.SerializeInternal(BuildWebServiceError(ex.Message, ex.StackTrace, ex.GetType().FullName)));
System.Web.Mobile (2)
Mobile\MobileErrorInfo.cs (1)
113this.Type = e.GetType().FullName;
UI\MobileControls\Adapters\WmlPageAdapter.cs (1)
263wmlWriter.WriteEncodedText(ex.GetType().ToString());
System.Web.Services (6)
System\Web\Services\Diagnostics\TraceUtility.cs (4)
151TraceEvent(eventType, Res.GetString(Res.TraceExceptionThrown, method.ToString(), e.GetType(), e.Message)); 166TraceEvent(eventType, Res.GetString(Res.TraceExceptionCought, method, e.GetType(), e.Message)); 176TraceEvent(eventType, Res.GetString(Res.TraceExceptionCought, TraceMethod.MethodId(target, method), e.GetType(), e.Message)); 186TraceEvent(eventType, Res.GetString(Res.TraceExceptionIgnored, method, e.GetType(), e.Message));
System\Web\Services\Protocols\ServerProtocol.cs (2)
136if (text.Length == 0) text = e.GetType().Name; 145builder.Append(e.GetType().FullName);
System.Windows.Forms (11)
winforms\Managed\System\WinForms\AxHost.cs (1)
7467Debug.Fail("Failed to build IPerPropertyBrowsing editor. " + ex.GetType().Name + ", " + ex.Message);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\BaseCAMarshaler.cs (2)
96Debug.WriteLineIf(CAMarshalSwitch.TraceVerbose, "Marshaling failed: " + ex.GetType().Name + ", " + ex.Message); 131Debug.WriteLineIf(CAMarshalSwitch.TraceVerbose, "Failed to marshal " + ItemType.Name + " item, exception=" + ex.GetType().Name +", " +ex.Message);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
332Debug.Fail("Failed to build IPerPropertyBrowsing editor. " + ex.GetType().Name + ", " + ex.Message);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
801Debug.WriteLineIf(DbgTypeInfoProcessorSwitch.TraceVerbose, "ProcessTypeInfoEnum: PtrtoStructFailed " + ex.GetType().Name + "," + ex.Message);
winforms\Managed\System\WinForms\FileDialog.cs (1)
1077sb.Append(e.GetType().FullName);
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
2586message = exception.GetType().ToString() + ": " + exception.Message;
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
1690Debug.Fail("Failed to get properties: " + e.GetType().Name + "," + e.Message + "\n" + e.StackTrace); 1770Debug.Fail("Bad Type Converter! " + t.GetType().Name + ", " + t.Message + "," + converter.ToString(), t.ToString());
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (2)
165messageText = t.GetType().Name; 168messageText = SR.GetString(messageRes, t.GetType().Name, Trim(messageText));
System.Workflow.ComponentModel (3)
AuthoringOM\Behaviors\ExceptionHandlers.cs (1)
58Type exceptionType = excep.GetType();
AuthoringOM\Compiler\XomlCompilerHelpers.cs (2)
684ValidationError error = new ValidationError(SR.GetString(SR.Error_ValidatorThrewException, e.GetType().FullName, validator.GetType().FullName, activity.Name, e.ToString()), ErrorNumbers.Error_ValidatorThrewException); 689ValidationError error = new ValidationError(SR.GetString(SR.Error_ValidatorThrewException, e.GetType().FullName, validator.GetType().FullName, activity.Name, e.ToString()), ErrorNumbers.Error_ValidatorThrewException);
WindowsBase (2)
Base\MS\Internal\Interop\ErrorCodes.cs (2)
437if (e.GetType() == typeof(COMException)) 464ConstructorInfo cons = e.GetType().GetConstructor(new[] { typeof(string) });
XamlBuildTask (5)
Microsoft\Build\Tasks\Xaml\CompilationPass2TaskInternal.cs (2)
342throw FxTrace.Exception.AsError(new LoggableException(SR.ExceptionThrownInExtension(extension.ToString(), e.GetType().ToString(), SR.AssemblyNotFound(ResolveAssemblyHelper.FileNotFound)))); 350throw FxTrace.Exception.AsError(new LoggableException(SR.ExceptionThrownInExtension(extension.ToString(), e.GetType().ToString(), e.Message)));
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (1)
564throw FxTrace.Exception.AsError(new LoggableException(SR.ExceptionThrownInExtension(extension.ToString(), e.GetType().ToString(), e.Message)));
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (2)
715e.GetType().ToString(), 717e.InnerException != null ? e.InnerException.GetType().ToString() : "null",