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
- CompModSwitches.cs
- GeometryHitTestParameters.cs
- Rules.cs
- StringBlob.cs
- BlurEffect.cs
- UpnEndpointIdentityExtension.cs
- BuildResult.cs
- ChangeProcessor.cs
- ThreadStateException.cs
- MouseEventArgs.cs
- _Events.cs
- ExpressionVisitor.cs
- ObjectDisposedException.cs
- TextBox.cs
- ObjectDataSourceView.cs
- DebuggerAttributes.cs
- MenuCommand.cs
- PointConverter.cs
- StringArrayConverter.cs
- ForceCopyBuildProvider.cs
- ServiceHostingEnvironment.cs
- RightNameExpirationInfoPair.cs
- FontResourceCache.cs
- Transform3DCollection.cs
- SignatureToken.cs
- __TransparentProxy.cs
- ConnectionProviderAttribute.cs
- InteropAutomationProvider.cs
- Screen.cs
- OutKeywords.cs
- PropVariant.cs
- TrimSurroundingWhitespaceAttribute.cs
- EventProviderWriter.cs
- PropertyNames.cs
- XmlObjectSerializerWriteContext.cs
- XXXOnTypeBuilderInstantiation.cs
- CheckBox.cs
- ListBox.cs
- MarshalByValueComponent.cs
- FormViewUpdateEventArgs.cs
- RenamedEventArgs.cs
- HttpModulesSection.cs
- OleDbConnectionInternal.cs
- ReadOnlyKeyedCollection.cs
- XmlSchemaSubstitutionGroup.cs
- SafeRegistryHandle.cs
- ScopelessEnumAttribute.cs
- DBAsyncResult.cs
- CommentEmitter.cs
- WebRequest.cs
- SoapTypeAttribute.cs
- Timer.cs
- FlowDocumentReaderAutomationPeer.cs
- ConstraintEnumerator.cs
- XamlClipboardData.cs
- StreamHelper.cs
- XmlMtomReader.cs
- DiscoveryMessageSequence11.cs
- FrameworkEventSource.cs
- ProbeMatches11.cs
- CurrentChangingEventManager.cs
- XamlReaderHelper.cs
- Dictionary.cs
- OracleConnection.cs
- HwndKeyboardInputProvider.cs
- StateBag.cs
- FormViewModeEventArgs.cs
- AggregateNode.cs
- ListSortDescription.cs
- PreservationFileReader.cs
- DataGridHeaderBorder.cs
- latinshape.cs
- ObjectDataSourceFilteringEventArgs.cs
- CustomError.cs
- SqlParameterCollection.cs
- __FastResourceComparer.cs
- IDispatchConstantAttribute.cs
- ImageAutomationPeer.cs
- ProxyFragment.cs
- Adorner.cs
- ReferencedCategoriesDocument.cs
- Line.cs
- ChangeBlockUndoRecord.cs
- RenderCapability.cs
- exports.cs
- StreamWriter.cs
- LabelLiteral.cs
- RawStylusActions.cs
- ResetableIterator.cs
- WebPartDisplayModeCancelEventArgs.cs
- JournalEntry.cs
- SchemaElementLookUpTable.cs
- TreeViewImageKeyConverter.cs
- RootBrowserWindowProxy.cs
- RtfToken.cs
- HorizontalAlignConverter.cs
- GridEntryCollection.cs
- PersonalizationState.cs
- CreateUserWizardStep.cs
- UpdatePanelTriggerCollection.cs