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
- DbUpdateCommandTree.cs
- ObfuscationAttribute.cs
- PropertyGrid.cs
- RTLAwareMessageBox.cs
- Mouse.cs
- XmlSchemaObject.cs
- PlainXmlWriter.cs
- XPathParser.cs
- ScriptReference.cs
- ZipIOExtraFieldPaddingElement.cs
- WebPartVerb.cs
- ColorInterpolationModeValidation.cs
- DbMetaDataColumnNames.cs
- UriTemplateEquivalenceComparer.cs
- GroupPartitionExpr.cs
- ApplicationServicesHostFactory.cs
- SoundPlayer.cs
- OutputCacheProfileCollection.cs
- Helper.cs
- ComboBoxAutomationPeer.cs
- MouseGesture.cs
- WebBrowserContainer.cs
- IdentityModelDictionary.cs
- DataControlPagerLinkButton.cs
- BaseTemplateParser.cs
- EventLogPermissionHolder.cs
- DataSourceView.cs
- ObjectSet.cs
- PixelShader.cs
- InternalControlCollection.cs
- DecimalAverageAggregationOperator.cs
- ComEventsSink.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- PropertyInfoSet.cs
- ListBindingConverter.cs
- XmlWrappingWriter.cs
- RulePatternOps.cs
- DescendantOverDescendantQuery.cs
- ConnectionInterfaceCollection.cs
- SafeCryptoHandles.cs
- EndpointIdentity.cs
- FontSizeConverter.cs
- CollectionBase.cs
- TargetFrameworkAttribute.cs
- CustomErrorsSection.cs
- Transform.cs
- StrokeIntersection.cs
- ConfigXmlCDataSection.cs
- ToolStripSplitStackLayout.cs
- Cursor.cs
- JsonServiceDocumentSerializer.cs
- GcSettings.cs
- listviewsubitemcollectioneditor.cs
- BrowserCapabilitiesFactory.cs
- ClearTypeHintValidation.cs
- FrameworkObject.cs
- DateTimeFormatInfo.cs
- WhitespaceRule.cs
- DockProviderWrapper.cs
- AmbiguousMatchException.cs
- ReadOnlyDataSource.cs
- ClassImporter.cs
- initElementDictionary.cs
- AmbiguousMatchException.cs
- GetIndexBinder.cs
- TableMethodGenerator.cs
- ConversionValidationRule.cs
- ToolStripMenuItem.cs
- Vertex.cs
- Canvas.cs
- recordstatescratchpad.cs
- StackBuilderSink.cs
- ListViewItemMouseHoverEvent.cs
- ResXResourceReader.cs
- CompressEmulationStream.cs
- StringSorter.cs
- IgnorePropertiesAttribute.cs
- Hash.cs
- CompatibleIComparer.cs
- Converter.cs
- XmlSerializationGeneratedCode.cs
- FontCacheLogic.cs
- keycontainerpermission.cs
- XsdBuildProvider.cs
- NumberAction.cs
- Signature.cs
- AliasedExpr.cs
- WrappedReader.cs
- SurrogateEncoder.cs
- DBPropSet.cs
- GenericTypeParameterBuilder.cs
- MediaCommands.cs
- MasterPage.cs
- ExpressionBindingCollection.cs
- SHA256.cs
- XmlValidatingReaderImpl.cs
- CompositeFontFamily.cs
- SqlDataSourceRefreshSchemaForm.cs
- PowerStatus.cs
- OdbcRowUpdatingEvent.cs