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