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
- CodeSnippetExpression.cs
- DbConnectionPoolGroup.cs
- LogicalChannelCollection.cs
- InlineCollection.cs
- ComponentFactoryHelpers.cs
- RuleProcessor.cs
- UiaCoreApi.cs
- SystemEvents.cs
- FrameworkContentElement.cs
- SiteIdentityPermission.cs
- SynchronizationFilter.cs
- SQlBooleanStorage.cs
- IDQuery.cs
- AutoGeneratedField.cs
- util.cs
- QuaternionRotation3D.cs
- DbParameterHelper.cs
- TimeIntervalCollection.cs
- DrawingBrush.cs
- DiscoveryDocumentLinksPattern.cs
- BorderGapMaskConverter.cs
- PropertyItemInternal.cs
- MLangCodePageEncoding.cs
- EventWaitHandleSecurity.cs
- Opcode.cs
- NonNullItemCollection.cs
- BlurBitmapEffect.cs
- VectorAnimationBase.cs
- SingleAnimationUsingKeyFrames.cs
- TypefaceMetricsCache.cs
- ContentPosition.cs
- TextEditorSelection.cs
- NodeFunctions.cs
- SimpleTextLine.cs
- HotSpotCollection.cs
- ScalarType.cs
- PerformanceCounterNameAttribute.cs
- FormViewInsertEventArgs.cs
- ListControl.cs
- Input.cs
- DependencyObjectPropertyDescriptor.cs
- DataGridViewControlCollection.cs
- OutputCacheEntry.cs
- AnnotationResource.cs
- CodeLinePragma.cs
- ScrollableControlDesigner.cs
- HtmlControl.cs
- TrackingMemoryStream.cs
- EffectiveValueEntry.cs
- FrameworkContentElement.cs
- DataGridItemEventArgs.cs
- DataException.cs
- InternalResources.cs
- PointLight.cs
- MsmqBindingMonitor.cs
- RadioButtonRenderer.cs
- CryptoProvider.cs
- InputBinder.cs
- TimeIntervalCollection.cs
- BaseAddressPrefixFilterElementCollection.cs
- EventPrivateKey.cs
- BrowserDefinitionCollection.cs
- HuffCodec.cs
- SafeFileHandle.cs
- XmlUtil.cs
- Helpers.cs
- HttpServerVarsCollection.cs
- CacheVirtualItemsEvent.cs
- DataGridViewColumnHeaderCell.cs
- DiscoveryServiceExtension.cs
- TextOnlyOutput.cs
- TiffBitmapDecoder.cs
- TextServicesCompartmentEventSink.cs
- MediaElementAutomationPeer.cs
- OledbConnectionStringbuilder.cs
- SafeHandle.cs
- BigInt.cs
- SessionPageStateSection.cs
- XmlSchemaProviderAttribute.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- PolicyManager.cs
- EntityDataSourceWizardForm.cs
- InvalidAsynchronousStateException.cs
- SchemaNamespaceManager.cs
- ProcessHost.cs
- GPRECTF.cs
- SrgsToken.cs
- UInt16Storage.cs
- ButtonField.cs
- FileAuthorizationModule.cs
- BitmapEffect.cs
- DataTableMappingCollection.cs
- ComboBoxHelper.cs
- ToolStripSystemRenderer.cs
- ChildTable.cs
- DrawingContextWalker.cs
- BlurEffect.cs
- LeaseManager.cs
- EntityCommand.cs
- SpeechAudioFormatInfo.cs