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
- DataGridColumnStyleMappingNameEditor.cs
- ModuleElement.cs
- InstanceView.cs
- CachedRequestParams.cs
- PeerToPeerException.cs
- SynchronousChannelMergeEnumerator.cs
- DataControlImageButton.cs
- LinqExpressionNormalizer.cs
- DesignConnection.cs
- XPathBuilder.cs
- AvTraceFormat.cs
- ButtonRenderer.cs
- DataRecordInfo.cs
- __Filters.cs
- ColorAnimation.cs
- HttpCachePolicy.cs
- CodeTypeMemberCollection.cs
- PeerInvitationResponse.cs
- XhtmlTextWriter.cs
- TaskFileService.cs
- CreateUserErrorEventArgs.cs
- BuiltInExpr.cs
- CodeSnippetCompileUnit.cs
- Evaluator.cs
- TrimSurroundingWhitespaceAttribute.cs
- AppliedDeviceFiltersDialog.cs
- ViewStateChangedEventArgs.cs
- DoubleAnimation.cs
- ClientSponsor.cs
- ETagAttribute.cs
- Vector3DAnimation.cs
- panel.cs
- CodeExporter.cs
- CultureSpecificStringDictionary.cs
- PropertyDescriptorCollection.cs
- TypeDescriptionProviderAttribute.cs
- NativeCppClassAttribute.cs
- DetailsView.cs
- BuiltInExpr.cs
- ParserExtension.cs
- WorkflowViewManager.cs
- CompositionTarget.cs
- ListViewInsertEventArgs.cs
- DesignerForm.cs
- GenericTypeParameterConverter.cs
- StringWriter.cs
- DataGridItemCollection.cs
- XmlEntity.cs
- TemplatedWizardStep.cs
- PageContentAsyncResult.cs
- CharEntityEncoderFallback.cs
- DataListItem.cs
- ClientApiGenerator.cs
- SqlTriggerAttribute.cs
- WorkflowPersistenceService.cs
- GenericUriParser.cs
- Console.cs
- URLAttribute.cs
- TrayIconDesigner.cs
- PropertyReferenceSerializer.cs
- SchemaImporter.cs
- SolidBrush.cs
- EnvelopedPkcs7.cs
- DataTableMapping.cs
- ClientConfigPaths.cs
- MediaScriptCommandRoutedEventArgs.cs
- regiisutil.cs
- Button.cs
- TableItemProviderWrapper.cs
- KnownBoxes.cs
- TextPointerBase.cs
- HttpBrowserCapabilitiesBase.cs
- LifetimeManager.cs
- ColorTranslator.cs
- DataGridViewUtilities.cs
- HttpWebRequestElement.cs
- CompilationUtil.cs
- SmtpNtlmAuthenticationModule.cs
- DBCSCodePageEncoding.cs
- HostedHttpRequestAsyncResult.cs
- MergablePropertyAttribute.cs
- PrintDialog.cs
- Latin1Encoding.cs
- RestHandlerFactory.cs
- TextEmbeddedObject.cs
- ModelItemExtensions.cs
- DockEditor.cs
- DeploymentExceptionMapper.cs
- ReferenceAssemblyAttribute.cs
- QilReplaceVisitor.cs
- Hex.cs
- WebPartEditorCancelVerb.cs
- SubstitutionResponseElement.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TypeInitializationException.cs
- SystemSounds.cs
- ModuleElement.cs
- BufferedResponseStream.cs
- ExpandableObjectConverter.cs
- ScrollChangedEventArgs.cs