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
- GridSplitterAutomationPeer.cs
- PreservationFileWriter.cs
- Instrumentation.cs
- SQLBoolean.cs
- DocumentApplicationJournalEntry.cs
- QueryRewriter.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- PageVisual.cs
- ExecutedRoutedEventArgs.cs
- SecurityDocument.cs
- DirectoryInfo.cs
- StateMachineDesignerPaint.cs
- BitStack.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- FontFamilyValueSerializer.cs
- InvalidProgramException.cs
- XamlPathDataSerializer.cs
- SectionInformation.cs
- XXXOnTypeBuilderInstantiation.cs
- CurrentChangedEventManager.cs
- BuildProviderCollection.cs
- JsonMessageEncoderFactory.cs
- CollectionChangeEventArgs.cs
- AutoCompleteStringCollection.cs
- _BaseOverlappedAsyncResult.cs
- CustomSignedXml.cs
- Range.cs
- ProviderSettingsCollection.cs
- EnvironmentPermission.cs
- OleTxTransactionInfo.cs
- SqlInternalConnection.cs
- TypeUnloadedException.cs
- UInt64.cs
- CodeObjectCreateExpression.cs
- XmlNotation.cs
- RootDesignerSerializerAttribute.cs
- CodeDirectiveCollection.cs
- ItemsPanelTemplate.cs
- TouchesOverProperty.cs
- SqlDataSourceFilteringEventArgs.cs
- PrivilegeNotHeldException.cs
- PartialArray.cs
- SlotInfo.cs
- ContentControl.cs
- DelegateSerializationHolder.cs
- ProtocolProfile.cs
- ObjectAnimationUsingKeyFrames.cs
- BaseDataList.cs
- FrameworkName.cs
- CodeDOMProvider.cs
- Int16Converter.cs
- CancellationState.cs
- CommandLibraryHelper.cs
- SimpleMailWebEventProvider.cs
- PenLineJoinValidation.cs
- PieceNameHelper.cs
- StyleModeStack.cs
- WebExceptionStatus.cs
- PathGeometry.cs
- CryptoConfig.cs
- ValuePatternIdentifiers.cs
- StateRuntime.cs
- safelink.cs
- XmlSchemaCollection.cs
- EventDescriptorCollection.cs
- RichTextBoxAutomationPeer.cs
- Rotation3DAnimationBase.cs
- BoolExpression.cs
- StylusPointPropertyInfoDefaults.cs
- DataServiceHostFactory.cs
- Comparer.cs
- ConfigXmlAttribute.cs
- SupportsPreviewControlAttribute.cs
- DSACryptoServiceProvider.cs
- LazyTextWriterCreator.cs
- ClientUtils.cs
- TextDecorationLocationValidation.cs
- LifetimeServices.cs
- TileBrush.cs
- AxWrapperGen.cs
- ThousandthOfEmRealPoints.cs
- PropertyDescriptor.cs
- EndEvent.cs
- HtmlShim.cs
- StringUtil.cs
- Accessors.cs
- SvcMapFile.cs
- Font.cs
- EmulateRecognizeCompletedEventArgs.cs
- LocalValueEnumerator.cs
- TypeUsageBuilder.cs
- ActionFrame.cs
- IfAction.cs
- OleDbParameter.cs
- RootBrowserWindowAutomationPeer.cs
- SecureConversationServiceElement.cs
- TaskExtensions.cs
- BaseValidator.cs
- _UriTypeConverter.cs
- FilteredDataSetHelper.cs