Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HybridDictionary.cs
- AsyncCodeActivity.cs
- EdmComplexPropertyAttribute.cs
- ItemCollectionEditor.cs
- Int32Animation.cs
- VSWCFServiceContractGenerator.cs
- DataContract.cs
- MatchingStyle.cs
- SectionUpdates.cs
- DoubleAnimationClockResource.cs
- OdbcConnection.cs
- AvTrace.cs
- EdmPropertyAttribute.cs
- UTF8Encoding.cs
- DbParameterCollectionHelper.cs
- WorkflowTerminatedException.cs
- HorizontalAlignConverter.cs
- OneWayBindingElementImporter.cs
- ExpressionConverter.cs
- ValidationEventArgs.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- NativeRecognizer.cs
- EventItfInfo.cs
- SectionXmlInfo.cs
- RtfControls.cs
- DataGridViewTopLeftHeaderCell.cs
- WebPartEditVerb.cs
- PrintController.cs
- StylusSystemGestureEventArgs.cs
- COAUTHINFO.cs
- QueueAccessMode.cs
- Canvas.cs
- FontStyles.cs
- DBSchemaRow.cs
- TextEndOfSegment.cs
- BitmapDownload.cs
- TreeNodeBindingCollection.cs
- sqlmetadatafactory.cs
- RoleManagerModule.cs
- TriState.cs
- DisposableCollectionWrapper.cs
- RotateTransform3D.cs
- XmlFormatReaderGenerator.cs
- XmlChildNodes.cs
- PointConverter.cs
- DataGridComponentEditor.cs
- AssemblyBuilder.cs
- XmlDeclaration.cs
- HttpApplicationFactory.cs
- SmiContextFactory.cs
- SerializationSectionGroup.cs
- WebPartCatalogAddVerb.cs
- ConnectionPoolManager.cs
- TokenBasedSet.cs
- GlyphTypeface.cs
- GeometryGroup.cs
- _TLSstream.cs
- SettingsPropertyNotFoundException.cs
- RelationshipManager.cs
- HtmlTableRowCollection.cs
- StringReader.cs
- DetailsViewDeletedEventArgs.cs
- _WinHttpWebProxyDataBuilder.cs
- ResXDataNode.cs
- EmbossBitmapEffect.cs
- ServicePointManager.cs
- DataControlFieldHeaderCell.cs
- DataGridRowClipboardEventArgs.cs
- FillErrorEventArgs.cs
- GenericQueueSurrogate.cs
- RecognitionEventArgs.cs
- JsonQNameDataContract.cs
- ScrollChrome.cs
- PropertyKey.cs
- OdbcFactory.cs
- _NativeSSPI.cs
- returneventsaver.cs
- SHA256CryptoServiceProvider.cs
- ImpersonateTokenRef.cs
- invalidudtexception.cs
- PageFunction.cs
- CreateUserWizard.cs
- RuleSettings.cs
- EventWaitHandle.cs
- WebBrowserProgressChangedEventHandler.cs
- TextEditorDragDrop.cs
- FilterException.cs
- DetailsViewPagerRow.cs
- GuidelineCollection.cs
- Button.cs
- SendParametersContent.cs
- CustomValidator.cs
- XmlHelper.cs
- CanonicalFontFamilyReference.cs
- ThreadExceptionDialog.cs
- SkewTransform.cs
- UInt16.cs
- ScriptReferenceBase.cs
- LinkButton.cs
- DictionarySurrogate.cs