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
- Typeface.cs
- BitmapDownload.cs
- ColorKeyFrameCollection.cs
- DropDownList.cs
- CompositeCollection.cs
- PermissionToken.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Select.cs
- ReadOnlyCollection.cs
- OperationGenerator.cs
- SettingsSavedEventArgs.cs
- ObservableCollectionDefaultValueFactory.cs
- CharEnumerator.cs
- FilterQueryOptionExpression.cs
- OdbcConnectionOpen.cs
- QueryAsyncResult.cs
- AdCreatedEventArgs.cs
- SqlSupersetValidator.cs
- WebEventCodes.cs
- OneOfScalarConst.cs
- Visitors.cs
- __Filters.cs
- StylusCollection.cs
- GlyphElement.cs
- LicFileLicenseProvider.cs
- XPathScanner.cs
- TokenizerHelper.cs
- WindowsRebar.cs
- ThemeInfoAttribute.cs
- OleDbInfoMessageEvent.cs
- TypeLoadException.cs
- EncryptedReference.cs
- HttpContextServiceHost.cs
- CanonicalFontFamilyReference.cs
- OleDbMetaDataFactory.cs
- ModuleBuilder.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- APCustomTypeDescriptor.cs
- ManipulationInertiaStartingEventArgs.cs
- TagPrefixCollection.cs
- SQLGuid.cs
- ImageFormatConverter.cs
- MultipleViewPattern.cs
- Add.cs
- LogEntryHeaderv1Deserializer.cs
- TextRangeSerialization.cs
- CatalogZoneAutoFormat.cs
- ConnectionStringsExpressionEditor.cs
- TemplatedMailWebEventProvider.cs
- AppDomain.cs
- WindowHideOrCloseTracker.cs
- DateTimePicker.cs
- XmlSchemaGroup.cs
- EncryptedType.cs
- Column.cs
- TemplatedAdorner.cs
- ManageRequest.cs
- HashCoreRequest.cs
- SqlDataSourceWizardForm.cs
- HwndSource.cs
- CompilerWrapper.cs
- UpdateExpressionVisitor.cs
- DbgUtil.cs
- CultureTable.cs
- HttpSessionStateBase.cs
- CodeIdentifiers.cs
- TrustLevelCollection.cs
- ServerValidateEventArgs.cs
- PkcsUtils.cs
- KeyBinding.cs
- WindowsScrollBarBits.cs
- StrokeNodeData.cs
- StreamWriter.cs
- DocumentsTrace.cs
- RichTextBox.cs
- SimplePropertyEntry.cs
- ImageFormat.cs
- SocketAddress.cs
- ChtmlTextWriter.cs
- Transform3D.cs
- Tablet.cs
- _ChunkParse.cs
- TextEncodedRawTextWriter.cs
- DynamicDataRouteHandler.cs
- BasicExpandProvider.cs
- DBProviderConfigurationHandler.cs
- ResourceProviderFactory.cs
- HttpCookie.cs
- DataBindingCollection.cs
- KeyInstance.cs
- WorkflowMarkupSerializerMapping.cs
- CodeTypeParameterCollection.cs
- FrameworkContentElement.cs
- FilteredAttributeCollection.cs
- SolidBrush.cs
- SafeWaitHandle.cs
- SequentialActivityDesigner.cs
- CharacterMetrics.cs
- Translator.cs
- BindingContext.cs