Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- UserControlParser.cs
- JavascriptCallbackBehaviorAttribute.cs
- LinkButton.cs
- XdrBuilder.cs
- URLEditor.cs
- FormViewRow.cs
- EncryptedType.cs
- StrokeCollectionDefaultValueFactory.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DescendentsWalkerBase.cs
- SqlMethodAttribute.cs
- EntityClientCacheKey.cs
- KnownBoxes.cs
- WhitespaceRule.cs
- Label.cs
- JsonMessageEncoderFactory.cs
- ExtensionSurface.cs
- XmlAttributes.cs
- FieldToken.cs
- MemberInitExpression.cs
- ByteArrayHelperWithString.cs
- ModelPerspective.cs
- IPAddress.cs
- Symbol.cs
- CapabilitiesAssignment.cs
- FreezableCollection.cs
- DesignerSerializationOptionsAttribute.cs
- TableCellsCollectionEditor.cs
- PageBreakRecord.cs
- TextElementCollection.cs
- SHA256.cs
- MessagePropertyVariants.cs
- PlainXmlDeserializer.cs
- BooleanExpr.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataGridViewSelectedColumnCollection.cs
- FullTextLine.cs
- PropertyEmitter.cs
- ElementNotAvailableException.cs
- WindowsFormsHelpers.cs
- ElementProxy.cs
- TdsParserSafeHandles.cs
- TempEnvironment.cs
- FixedSOMTableRow.cs
- ToolStripDropDownClosedEventArgs.cs
- Privilege.cs
- IndexingContentUnit.cs
- ListItem.cs
- InternalRelationshipCollection.cs
- AutomationAttributeInfo.cs
- BufferAllocator.cs
- QueryableFilterUserControl.cs
- SettingsAttributes.cs
- Vector3DCollectionConverter.cs
- PaintEvent.cs
- FolderBrowserDialog.cs
- MaterialCollection.cs
- mediaclock.cs
- WindowsGraphics.cs
- ToolboxBitmapAttribute.cs
- PropertyStore.cs
- SiteOfOriginPart.cs
- RedBlackList.cs
- XmlBinaryReaderSession.cs
- CaretElement.cs
- SystemIPGlobalStatistics.cs
- SystemDiagnosticsSection.cs
- ProcessInfo.cs
- DBSchemaTable.cs
- TypeToken.cs
- CommonDialog.cs
- SrgsDocument.cs
- CompressEmulationStream.cs
- BlockUIContainer.cs
- Serializer.cs
- BooleanStorage.cs
- SelectionPattern.cs
- AccessText.cs
- DetailsViewDesigner.cs
- CommonGetThemePartSize.cs
- DragEvent.cs
- ComponentChangingEvent.cs
- InvokeProviderWrapper.cs
- ClientSettings.cs
- CommonObjectSecurity.cs
- DataGridItem.cs
- HttpCacheVaryByContentEncodings.cs
- Missing.cs
- MultipleCopiesCollection.cs
- SoapAttributes.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AdornerPresentationContext.cs
- ObjectDataSourceView.cs
- MimeTypePropertyAttribute.cs
- QuaternionKeyFrameCollection.cs
- ThrowHelper.cs
- DataSvcMapFileSerializer.cs
- ButtonBase.cs
- WebPartDeleteVerb.cs
- HttpCookie.cs