Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / TargetInvocationException.cs / 1305376 / 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)] #if FEATURE_CORECLR public sealed class TargetInvocationException : Exception { // hack to make thinner happy #if false } #endif #else public sealed class TargetInvocationException : ApplicationException { #endif //FEATURE_CORECLR // 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)] #if FEATURE_CORECLR public sealed class TargetInvocationException : Exception { // hack to make thinner happy #if false } #endif #else public sealed class TargetInvocationException : ApplicationException { #endif //FEATURE_CORECLR // 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
- SQLMembershipProvider.cs
- StaticDataManager.cs
- ObjectDataSourceMethodEventArgs.cs
- XmlAttributeHolder.cs
- ContentElementCollection.cs
- FusionWrap.cs
- ScrollEvent.cs
- ButtonStandardAdapter.cs
- VisualStyleElement.cs
- Rect.cs
- DataKey.cs
- DPTypeDescriptorContext.cs
- TextServicesContext.cs
- BitmapCodecInfo.cs
- OleDbCommand.cs
- WebPartCancelEventArgs.cs
- ReachIDocumentPaginatorSerializer.cs
- SendKeys.cs
- BitmapEffectState.cs
- ToolStripManager.cs
- _HeaderInfoTable.cs
- StandardToolWindows.cs
- Size3DConverter.cs
- IIS7UserPrincipal.cs
- XmlImplementation.cs
- InputGestureCollection.cs
- PageTheme.cs
- DataControlPagerLinkButton.cs
- HttpListener.cs
- DbConnectionInternal.cs
- PrimitiveType.cs
- _UncName.cs
- SigningCredentials.cs
- FactoryRecord.cs
- SqlParameterizer.cs
- SubMenuStyleCollection.cs
- BoundsDrawingContextWalker.cs
- ListBindingHelper.cs
- ScaleTransform3D.cs
- ConfigXmlElement.cs
- EmbeddedMailObject.cs
- QueuePathEditor.cs
- HierarchicalDataBoundControlAdapter.cs
- HintTextMaxWidthConverter.cs
- HttpPostedFile.cs
- TypedTableBase.cs
- MappingSource.cs
- datacache.cs
- DynamicMethod.cs
- NamespaceExpr.cs
- SqlConnectionPoolProviderInfo.cs
- IPAddress.cs
- UidManager.cs
- WorkflowItemsPresenter.cs
- XmlSchemaComplexType.cs
- MobileTextWriter.cs
- SafeTimerHandle.cs
- HwndProxyElementProvider.cs
- RealizationDrawingContextWalker.cs
- HtmlControlPersistable.cs
- DataGridViewCellLinkedList.cs
- IncrementalReadDecoders.cs
- CalendarDay.cs
- Int64AnimationBase.cs
- SharedHttpTransportManager.cs
- EntityClassGenerator.cs
- FormsAuthenticationCredentials.cs
- InvalidAsynchronousStateException.cs
- BaseValidator.cs
- ChildTable.cs
- MaskedTextProvider.cs
- StickyNote.cs
- NamespaceInfo.cs
- WhiteSpaceTrimStringConverter.cs
- Rules.cs
- GeometryHitTestResult.cs
- ListBoxAutomationPeer.cs
- ManualResetEvent.cs
- DataFormats.cs
- ApplicationDirectoryMembershipCondition.cs
- GB18030Encoding.cs
- ControlBuilderAttribute.cs
- CommandDevice.cs
- DbMetaDataFactory.cs
- NotSupportedException.cs
- ContentPropertyAttribute.cs
- ParallelEnumerableWrapper.cs
- ListParagraph.cs
- BufferModesCollection.cs
- ToolStripControlHost.cs
- BamlWriter.cs
- SmtpClient.cs
- ColorMatrix.cs
- TraceLevelStore.cs
- CodeEventReferenceExpression.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- EnglishPluralizationService.cs
- PackagePart.cs
- ClientEventManager.cs
- DispatcherExceptionEventArgs.cs