Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypedLocationWrapper.cs
- InternalConfigRoot.cs
- DrawingState.cs
- CompModSwitches.cs
- Registration.cs
- ProgressChangedEventArgs.cs
- ComponentSerializationService.cs
- SeekableReadStream.cs
- WebRequestModuleElement.cs
- ServiceProviders.cs
- JsonMessageEncoderFactory.cs
- PropertyItemInternal.cs
- GeneralTransformGroup.cs
- CFStream.cs
- DbModificationCommandTree.cs
- TdsParserStaticMethods.cs
- XmlIgnoreAttribute.cs
- Socket.cs
- SingleSelectRootGridEntry.cs
- GenerateDerivedKeyRequest.cs
- WebPartConnectionCollection.cs
- HebrewNumber.cs
- XmlEncoding.cs
- RuntimeConfig.cs
- HierarchicalDataSourceControl.cs
- ClientScriptManager.cs
- ImageButton.cs
- CustomErrorsSection.cs
- MimeWriter.cs
- ButtonColumn.cs
- StoragePropertyMapping.cs
- SessionPageStateSection.cs
- WithStatement.cs
- WebPartTransformerAttribute.cs
- ConfigurationStrings.cs
- SimpleHandlerFactory.cs
- ArgumentNullException.cs
- EventMappingSettingsCollection.cs
- SqlRecordBuffer.cs
- GridItemPattern.cs
- DeclarationUpdate.cs
- SqlReferenceCollection.cs
- SoapServerProtocol.cs
- PropertyGridEditorPart.cs
- ExceptionAggregator.cs
- ToolStripContentPanelRenderEventArgs.cs
- Content.cs
- IdentifierCollection.cs
- QilTernary.cs
- ClientSettingsSection.cs
- TextBlock.cs
- EdmToObjectNamespaceMap.cs
- templategroup.cs
- ColumnCollection.cs
- ToolStripStatusLabel.cs
- GridItem.cs
- XamlWrappingReader.cs
- CanExecuteRoutedEventArgs.cs
- Pens.cs
- DbMetaDataCollectionNames.cs
- TextAdaptor.cs
- SafeFileMappingHandle.cs
- SqlXmlStorage.cs
- FixUpCollection.cs
- CodeTypeParameter.cs
- WebPartRestoreVerb.cs
- XmlDataSourceNodeDescriptor.cs
- PKCS1MaskGenerationMethod.cs
- BuildProvidersCompiler.cs
- UriScheme.cs
- AmbiguousMatchException.cs
- BitmapSource.cs
- NativeMethods.cs
- IListConverters.cs
- WebServicesDescriptionAttribute.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- MethodBody.cs
- CustomValidator.cs
- XmlArrayAttribute.cs
- ShaperBuffers.cs
- StandardCommands.cs
- ToolboxItemAttribute.cs
- CodeTypeMember.cs
- MultiView.cs
- MeshGeometry3D.cs
- TypeDescriptorFilterService.cs
- ModulesEntry.cs
- ParseNumbers.cs
- DetailsViewUpdatedEventArgs.cs
- ModulesEntry.cs
- MultipartContentParser.cs
- CTreeGenerator.cs
- TextContainerChangeEventArgs.cs
- PageFunction.cs
- DataFormats.cs
- HttpRuntime.cs
- CollectionChangeEventArgs.cs
- SafeReversePInvokeHandle.cs
- ReversePositionQuery.cs
- httpstaticobjectscollection.cs