Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// 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) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceModelActivationSectionGroup.cs
- WorkflowApplicationException.cs
- DispatcherExceptionFilterEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- CompiledIdentityConstraint.cs
- ScriptReferenceEventArgs.cs
- BufferedGraphicsManager.cs
- StringDictionary.cs
- HierarchicalDataBoundControl.cs
- Renderer.cs
- ProcessHostConfigUtils.cs
- SessionStateModule.cs
- XmlAnyElementAttribute.cs
- HebrewCalendar.cs
- ThicknessKeyFrameCollection.cs
- TextBreakpoint.cs
- UnorderedHashRepartitionStream.cs
- Rect.cs
- Calendar.cs
- DataProtection.cs
- UIElement.cs
- PageParser.cs
- GridViewSelectEventArgs.cs
- XmlReflectionImporter.cs
- CodeComment.cs
- RelativeSource.cs
- AnalyzedTree.cs
- _WinHttpWebProxyDataBuilder.cs
- XmlILCommand.cs
- DESCryptoServiceProvider.cs
- SmtpFailedRecipientException.cs
- UriSection.cs
- ConsoleTraceListener.cs
- CodeExpressionCollection.cs
- SizeChangedEventArgs.cs
- RemotingSurrogateSelector.cs
- PenContexts.cs
- GridViewColumnCollection.cs
- ElementsClipboardData.cs
- MessageDirection.cs
- InfoCardArgumentException.cs
- Composition.cs
- ResolveNameEventArgs.cs
- PointAnimation.cs
- DoubleLinkList.cs
- SystemColorTracker.cs
- DirectoryObjectSecurity.cs
- AppDomainUnloadedException.cs
- MemberDescriptor.cs
- RegisteredDisposeScript.cs
- CodeDelegateCreateExpression.cs
- MailMessageEventArgs.cs
- Ray3DHitTestResult.cs
- Update.cs
- NumberAction.cs
- ConstraintConverter.cs
- CaseDesigner.xaml.cs
- MemoryStream.cs
- OutputScopeManager.cs
- Camera.cs
- LabelEditEvent.cs
- NotificationContext.cs
- KoreanLunisolarCalendar.cs
- AssemblySettingAttributes.cs
- ChangeDirector.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ThreadNeutralSemaphore.cs
- HttpCacheParams.cs
- XmlSchemaSimpleTypeRestriction.cs
- FactoryRecord.cs
- SoapEnumAttribute.cs
- OleDbInfoMessageEvent.cs
- TagMapCollection.cs
- XslVisitor.cs
- PermissionListSet.cs
- LinkButton.cs
- PatternMatcher.cs
- FacetEnabledSchemaElement.cs
- ToolStripArrowRenderEventArgs.cs
- ChangeNode.cs
- PriorityQueue.cs
- DesignerWebPartChrome.cs
- MarkupObject.cs
- ADConnectionHelper.cs
- BitmapInitialize.cs
- GenerateScriptTypeAttribute.cs
- oledbconnectionstring.cs
- ConnectionConsumerAttribute.cs
- RectangleHotSpot.cs
- DesignerTextWriter.cs
- ClrPerspective.cs
- TemplateFactory.cs
- DrawingImage.cs
- ContentPlaceHolder.cs
- DependsOnAttribute.cs
- MatrixAnimationUsingPath.cs
- EnumValAlphaComparer.cs
- StatusBarItem.cs
- JulianCalendar.cs
- Internal.cs