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
- ConfigurationManagerInternalFactory.cs
- WhitespaceRule.cs
- Span.cs
- InputScopeManager.cs
- NullableFloatSumAggregationOperator.cs
- WebPartEditorOkVerb.cs
- InputReferenceExpression.cs
- Lasso.cs
- MediaScriptCommandRoutedEventArgs.cs
- StyleHelper.cs
- RepeaterItemEventArgs.cs
- SeverityFilter.cs
- LineServicesCallbacks.cs
- _KerberosClient.cs
- Stroke.cs
- MultiByteCodec.cs
- DefaultBindingPropertyAttribute.cs
- HttpServerUtilityBase.cs
- WindowsScroll.cs
- SessionState.cs
- AssemblyCache.cs
- WebPartAddingEventArgs.cs
- ManagementObject.cs
- BitmapMetadata.cs
- TableLayoutStyle.cs
- OdbcInfoMessageEvent.cs
- BufferAllocator.cs
- WebSysDisplayNameAttribute.cs
- DynamicPropertyHolder.cs
- CollectionViewGroup.cs
- UiaCoreTypesApi.cs
- Point3D.cs
- ScriptIgnoreAttribute.cs
- DataColumnMapping.cs
- ViewManager.cs
- WindowsListViewItemStartMenu.cs
- SoapReflectionImporter.cs
- FontWeight.cs
- _ListenerAsyncResult.cs
- RemotingConfigParser.cs
- ThreadInterruptedException.cs
- DragDropHelper.cs
- XmlSiteMapProvider.cs
- MemberPath.cs
- XmlEncodedRawTextWriter.cs
- Baml2006KnownTypes.cs
- DataGridViewTextBoxCell.cs
- AbstractExpressions.cs
- AnimatedTypeHelpers.cs
- TemplateBindingExtensionConverter.cs
- XmlDocumentFragment.cs
- ThreadPool.cs
- TextTreeText.cs
- VideoDrawing.cs
- Int64Converter.cs
- SqlInternalConnection.cs
- GroupBoxAutomationPeer.cs
- ApplicationActivator.cs
- ListCollectionView.cs
- DataGridViewTopRowAccessibleObject.cs
- SqlCaseSimplifier.cs
- CollectionDataContract.cs
- DoubleCollection.cs
- DataQuery.cs
- OdbcStatementHandle.cs
- DrawingDrawingContext.cs
- UserMapPath.cs
- ByeOperationAsyncResult.cs
- PolyBezierSegmentFigureLogic.cs
- Stackframe.cs
- TransportationConfigurationTypeInstallComponent.cs
- SplineKeyFrames.cs
- ExtendedProtectionPolicy.cs
- AddInControllerImpl.cs
- SerTrace.cs
- HtmlCommandAdapter.cs
- UnsafeNativeMethods.cs
- TypePresenter.xaml.cs
- RequiredAttributeAttribute.cs
- URIFormatException.cs
- SqlTrackingService.cs
- MemoryPressure.cs
- TransformCollection.cs
- ServiceMemoryGates.cs
- DataControlFieldCell.cs
- BitmapEffectGeneralTransform.cs
- AgileSafeNativeMemoryHandle.cs
- WasAdminWrapper.cs
- EnumerableCollectionView.cs
- ReadOnlyDataSource.cs
- MsmqUri.cs
- WindowsAuthenticationModule.cs
- DiagnosticTraceSource.cs
- FastEncoderWindow.cs
- FunctionImportElement.cs
- Stroke.cs
- AuthStoreRoleProvider.cs
- Int32.cs
- ServiceBusyException.cs
- Pkcs7Recipient.cs