Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Reflection / TargetInvocationException.cs / 1 / TargetInvocationException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
// TargetInvocationException is used to report an exception that was thrown
// by the target of an invocation.
//
//
//
//
namespace System.Reflection {
using System;
using System.Runtime.Serialization;
[Serializable()]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class TargetInvocationException : ApplicationException {
// This exception is not creatable without specifying the
// inner exception.
private TargetInvocationException()
: base(Environment.GetResourceString("Arg_TargetInvocationException")) {
SetErrorCode(__HResults.COR_E_TARGETINVOCATION);
}
// This is called from within the runtime.
private TargetInvocationException(String message) : base(message) {
SetErrorCode(__HResults.COR_E_TARGETINVOCATION);
}
public TargetInvocationException(System.Exception inner)
: base(Environment.GetResourceString("Arg_TargetInvocationException"), inner) {
SetErrorCode(__HResults.COR_E_TARGETINVOCATION);
}
public TargetInvocationException(String message, Exception inner) : base(message, inner) {
SetErrorCode(__HResults.COR_E_TARGETINVOCATION);
}
internal TargetInvocationException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChtmlTextWriter.cs
- XhtmlBasicPhoneCallAdapter.cs
- CodeNamespace.cs
- Thumb.cs
- SessionStateItemCollection.cs
- EntityDataSourceUtil.cs
- GridViewSelectEventArgs.cs
- CodeCommentStatement.cs
- HitTestParameters.cs
- InfoCardProofToken.cs
- XPathSingletonIterator.cs
- MachineKeyConverter.cs
- SpecialNameAttribute.cs
- CaseInsensitiveComparer.cs
- RegexParser.cs
- ActiveXContainer.cs
- Size3DValueSerializer.cs
- InputBinding.cs
- OleDbReferenceCollection.cs
- HorizontalAlignConverter.cs
- TemplateManager.cs
- ObjectTokenCategory.cs
- Synchronization.cs
- AttachedPropertyBrowsableAttribute.cs
- WorkflowShape.cs
- FrameworkContentElementAutomationPeer.cs
- MeasureItemEvent.cs
- FormsAuthenticationUser.cs
- lengthconverter.cs
- EventTask.cs
- FontStyles.cs
- ConfigPathUtility.cs
- DataGridRelationshipRow.cs
- BooleanStorage.cs
- CheckedPointers.cs
- BuildDependencySet.cs
- TextOnlyOutput.cs
- WindowsFormsSectionHandler.cs
- DataExpression.cs
- NotifyCollectionChangedEventArgs.cs
- TypeConverter.cs
- UpdatePanelTrigger.cs
- DrawListViewColumnHeaderEventArgs.cs
- DataSourceHelper.cs
- HotSpotCollection.cs
- LocatorGroup.cs
- HttpPostedFile.cs
- BmpBitmapDecoder.cs
- XmlHierarchicalEnumerable.cs
- IndexedString.cs
- FormatterServices.cs
- InterleavedZipPartStream.cs
- HyperLink.cs
- Events.cs
- DataGridViewIntLinkedList.cs
- SessionState.cs
- DefaultValueAttribute.cs
- ListControlDataBindingHandler.cs
- ThreadExceptionDialog.cs
- StringUtil.cs
- DataTablePropertyDescriptor.cs
- TextContainerHelper.cs
- DataPagerCommandEventArgs.cs
- DataColumnMappingCollection.cs
- QueryCursorEventArgs.cs
- RefType.cs
- NamespaceListProperty.cs
- WebBrowser.cs
- PeerApplication.cs
- MouseBinding.cs
- TreeNodeClickEventArgs.cs
- DurationConverter.cs
- UserValidatedEventArgs.cs
- DependencyPropertyConverter.cs
- LinqDataSourceDisposeEventArgs.cs
- ProviderConnectionPointCollection.cs
- HttpRequest.cs
- ChangePassword.cs
- RouteUrlExpressionBuilder.cs
- MimeReflector.cs
- ScriptControl.cs
- SqlCacheDependency.cs
- PopupRoot.cs
- MSAAEventDispatcher.cs
- FreeFormDesigner.cs
- CriticalFinalizerObject.cs
- Operator.cs
- DuplicateDetector.cs
- SqlTypesSchemaImporter.cs
- DoubleCollection.cs
- CodeGeneratorOptions.cs
- ConfigXmlElement.cs
- HierarchicalDataBoundControl.cs
- XmlDataSourceView.cs
- ProfileGroupSettings.cs
- DbConnectionPoolCounters.cs
- DictionaryCustomTypeDescriptor.cs
- ListViewInsertionMark.cs
- HasCopySemanticsAttribute.cs
- OdbcErrorCollection.cs