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
- TextLineBreak.cs
- BitmapMetadata.cs
- Html32TextWriter.cs
- Frame.cs
- NoClickablePointException.cs
- FixedSOMSemanticBox.cs
- PageBreakRecord.cs
- EntityContainerAssociationSet.cs
- SmtpFailedRecipientsException.cs
- DescriptionAttribute.cs
- DataGridViewTopRowAccessibleObject.cs
- ImportCatalogPart.cs
- WebPermission.cs
- GlobalEventManager.cs
- TemplateBuilder.cs
- SqlDataReader.cs
- ResourceReader.cs
- XmlSchemaAnyAttribute.cs
- MetadataArtifactLoaderCompositeResource.cs
- PreProcessInputEventArgs.cs
- SuppressMessageAttribute.cs
- GridLength.cs
- ThreadStateException.cs
- DataSysAttribute.cs
- filewebresponse.cs
- ProxyHelper.cs
- MessageOperationFormatter.cs
- GridViewHeaderRowPresenter.cs
- Schema.cs
- HostSecurityManager.cs
- ListComponentEditor.cs
- ExtensionsSection.cs
- PreservationFileReader.cs
- Nullable.cs
- SessionPageStateSection.cs
- PolyLineSegment.cs
- CollectionChangedEventManager.cs
- DataColumn.cs
- AcceleratedTokenAuthenticator.cs
- ApplicationBuildProvider.cs
- WizardSideBarListControlItem.cs
- DocumentReference.cs
- Grant.cs
- XmlToDatasetMap.cs
- TraceContext.cs
- DataSourceIDConverter.cs
- PrimitiveDataContract.cs
- Pens.cs
- ConsoleCancelEventArgs.cs
- ToolStripScrollButton.cs
- DescendantQuery.cs
- RuntimeArgumentHandle.cs
- RemotingHelper.cs
- GraphicsState.cs
- AbstractSvcMapFileLoader.cs
- OpenTypeMethods.cs
- _UncName.cs
- Pkcs7Signer.cs
- SerializationHelper.cs
- TextDecorations.cs
- Script.cs
- QueryResponse.cs
- GlyphRun.cs
- UTF8Encoding.cs
- WebPermission.cs
- Configuration.cs
- ExclusiveNamedPipeTransportManager.cs
- SoapUnknownHeader.cs
- Viewport2DVisual3D.cs
- StringUtil.cs
- BamlRecordReader.cs
- BuildManager.cs
- HtmlValidationSummaryAdapter.cs
- ReadOnlyCollectionBase.cs
- HtmlInputText.cs
- XamlFigureLengthSerializer.cs
- returneventsaver.cs
- RadialGradientBrush.cs
- UpdatableGenericsFeature.cs
- Renderer.cs
- LazyLoadBehavior.cs
- SmiSettersStream.cs
- VisualStyleTypesAndProperties.cs
- TextAutomationPeer.cs
- LambdaCompiler.Logical.cs
- EventMap.cs
- PropertyDescriptorCollection.cs
- MediaScriptCommandRoutedEventArgs.cs
- ProfileSettings.cs
- DataServiceHostFactory.cs
- SupportsEventValidationAttribute.cs
- LoadMessageLogger.cs
- RelationshipNavigation.cs
- GeneralTransform3D.cs
- SoapServerProtocol.cs
- DynamicQueryableWrapper.cs
- StateItem.cs
- ReachDocumentPageSerializerAsync.cs
- cookiecollection.cs
- DesignerLinkAdapter.cs