Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- CodeValidator.cs
- AnonymousIdentificationModule.cs
- HandoffBehavior.cs
- XPathArrayIterator.cs
- WebControlToolBoxItem.cs
- SignatureToken.cs
- SQLGuidStorage.cs
- SplineQuaternionKeyFrame.cs
- Compiler.cs
- WindowsIPAddress.cs
- BrowserDefinitionCollection.cs
- DriveInfo.cs
- SynchronizingStream.cs
- WindowsAltTab.cs
- SvcMapFileSerializer.cs
- LoadRetryAsyncResult.cs
- PageContentCollection.cs
- DynamicPropertyHolder.cs
- ContainerActivationHelper.cs
- TemplateControlCodeDomTreeGenerator.cs
- AutoResetEvent.cs
- PropagatorResult.cs
- XmlComplianceUtil.cs
- StateValidator.cs
- BitmapEffectInput.cs
- XmlDownloadManager.cs
- TableFieldsEditor.cs
- InstanceHandle.cs
- figurelength.cs
- HTTPNotFoundHandler.cs
- PerformanceCounterPermissionEntry.cs
- BrowserDefinitionCollection.cs
- MemberCollection.cs
- VisualBasicExpressionConverter.cs
- ZipIOLocalFileDataDescriptor.cs
- ProcessHostFactoryHelper.cs
- UnmanagedHandle.cs
- HopperCache.cs
- ToolStripContainer.cs
- ObjectMemberMapping.cs
- ClientTargetCollection.cs
- FilteredXmlReader.cs
- RuntimeVariableList.cs
- PropertySegmentSerializer.cs
- StrongNameIdentityPermission.cs
- StrongName.cs
- GrammarBuilderBase.cs
- XmlSerializerSection.cs
- ExpressionHelper.cs
- GatewayIPAddressInformationCollection.cs
- ImportCatalogPart.cs
- PackageDocument.cs
- TreeViewHitTestInfo.cs
- ButtonColumn.cs
- ActivityXRefConverter.cs
- Baml2006ReaderContext.cs
- HandleCollector.cs
- PasswordDeriveBytes.cs
- XmlValidatingReader.cs
- XmlValidatingReaderImpl.cs
- HttpCapabilitiesSectionHandler.cs
- ContainerAction.cs
- SystemResourceHost.cs
- StyleSheet.cs
- TempEnvironment.cs
- RTLAwareMessageBox.cs
- FileCodeGroup.cs
- TrackingValidationObjectDictionary.cs
- DnsPermission.cs
- ListSourceHelper.cs
- AppModelKnownContentFactory.cs
- Sentence.cs
- NetworkStream.cs
- GenericTypeParameterConverter.cs
- hresults.cs
- SemanticKeyElement.cs
- DiagnosticsConfigurationHandler.cs
- __ConsoleStream.cs
- AuthenticationSection.cs
- _ChunkParse.cs
- TextReader.cs
- ToolStripPanelCell.cs
- unsafeIndexingFilterStream.cs
- FtpWebRequest.cs
- EventListenerClientSide.cs
- pingexception.cs
- RawStylusInputCustomData.cs
- DataServiceHostWrapper.cs
- RequestQueue.cs
- RectangleF.cs
- FieldAccessException.cs
- DeflateStream.cs
- Control.cs
- HtmlInputCheckBox.cs
- TypeExtensionConverter.cs
- SizeFConverter.cs
- PersonalizationStateQuery.cs
- DataGridViewAccessibleObject.cs
- InternalTypeHelper.cs
- TdsValueSetter.cs