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
- DelegateBodyWriter.cs
- MetadataCache.cs
- XmlValueConverter.cs
- WebPartHelpVerb.cs
- LicFileLicenseProvider.cs
- ImageCodecInfo.cs
- JavascriptXmlWriterWrapper.cs
- LateBoundBitmapDecoder.cs
- UriTemplateTable.cs
- XmlElementList.cs
- Odbc32.cs
- MouseCaptureWithinProperty.cs
- PrintPreviewControl.cs
- FileAuthorizationModule.cs
- RunInstallerAttribute.cs
- MediaTimeline.cs
- XmlValidatingReaderImpl.cs
- AttributeTable.cs
- FormatSettings.cs
- ILGenerator.cs
- XmlSchemaChoice.cs
- COM2ExtendedTypeConverter.cs
- TriState.cs
- ScriptDescriptor.cs
- WorkflowRuntimeServiceElement.cs
- _RequestCacheProtocol.cs
- SystemDiagnosticsSection.cs
- XmlEntity.cs
- ComponentDispatcherThread.cs
- InvokeGenerator.cs
- StringBlob.cs
- XmlTextReaderImpl.cs
- UnsafeMethods.cs
- VisualBasicSettingsHandler.cs
- TextViewDesigner.cs
- AssemblyCollection.cs
- XmlMessageFormatter.cs
- Decoder.cs
- XmlSchemaComplexContentExtension.cs
- MessageContractImporter.cs
- StylusPoint.cs
- UnsafeNativeMethodsTablet.cs
- ExceptionValidationRule.cs
- EventProxy.cs
- ImageMetadata.cs
- _Connection.cs
- XmlSchemaSimpleTypeUnion.cs
- PropagatorResult.cs
- OdbcConnectionHandle.cs
- _NestedSingleAsyncResult.cs
- BitArray.cs
- EventSinkActivityDesigner.cs
- AuthenticationModuleElement.cs
- CodeVariableReferenceExpression.cs
- FixedSchema.cs
- RowUpdatingEventArgs.cs
- AsymmetricKeyExchangeFormatter.cs
- OraclePermissionAttribute.cs
- SmiEventSink.cs
- SqlCacheDependency.cs
- DataGridViewHeaderCell.cs
- Parser.cs
- EntityPropertyMappingAttribute.cs
- InProcStateClientManager.cs
- CroppedBitmap.cs
- TableStyle.cs
- PeerValidationBehavior.cs
- BasicKeyConstraint.cs
- FacetDescription.cs
- InputLangChangeEvent.cs
- RequestCachePolicyConverter.cs
- ProviderException.cs
- DataGridCell.cs
- CqlIdentifiers.cs
- CodeDelegateCreateExpression.cs
- RegexRunner.cs
- ConsoleCancelEventArgs.cs
- Socket.cs
- WindowsGraphics.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DataSpaceManager.cs
- OdbcStatementHandle.cs
- MediaPlayer.cs
- ControlType.cs
- ProviderConnectionPointCollection.cs
- SelectedDatesCollection.cs
- AsymmetricKeyExchangeFormatter.cs
- CTreeGenerator.cs
- UnmanagedMemoryStreamWrapper.cs
- DrawingState.cs
- CompiledWorkflowDefinitionContext.cs
- ImageMapEventArgs.cs
- ConsumerConnectionPoint.cs
- BasicExpressionVisitor.cs
- SecurityKeyUsage.cs
- MgmtConfigurationRecord.cs
- ETagAttribute.cs
- SchemaElement.cs
- OleStrCAMarshaler.cs
- SecurityAlgorithmSuiteConverter.cs