Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / TargetException.cs / 1305376 / TargetException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // TargetException is thrown when the target to an Invoke is invalid. This may // //[....] // occur because the caller doesn't have access to the member, or the target doesn't // define the member, etc. // // // // namespace System.Reflection { using System; using System.Runtime.Serialization; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] #if FEATURE_CORECLR public class TargetException : Exception { #if false } #endif #else public class TargetException : ApplicationException { #endif //FEATURE_CORECLR public TargetException() : base() { SetErrorCode(__HResults.COR_E_TARGET); } public TargetException(String message) : base(message) { SetErrorCode(__HResults.COR_E_TARGET); } public TargetException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_TARGET); } [System.Security.SecuritySafeCritical] // auto-generated protected TargetException(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. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // TargetException is thrown when the target to an Invoke is invalid. This may // //[....] // occur because the caller doesn't have access to the member, or the target doesn't // define the member, etc. // // // // namespace System.Reflection { using System; using System.Runtime.Serialization; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] #if FEATURE_CORECLR public class TargetException : Exception { #if false } #endif #else public class TargetException : ApplicationException { #endif //FEATURE_CORECLR public TargetException() : base() { SetErrorCode(__HResults.COR_E_TARGET); } public TargetException(String message) : base(message) { SetErrorCode(__HResults.COR_E_TARGET); } public TargetException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_TARGET); } [System.Security.SecuritySafeCritical] // auto-generated protected TargetException(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
- Membership.cs
- RequestStatusBarUpdateEventArgs.cs
- RefExpr.cs
- RecognizedPhrase.cs
- Messages.cs
- XhtmlConformanceSection.cs
- BaseDataBoundControl.cs
- ButtonFieldBase.cs
- PriorityBindingExpression.cs
- AnnotationResource.cs
- MultiSelectRootGridEntry.cs
- AssemblyBuilderData.cs
- DrawingAttributes.cs
- PreloadedPackages.cs
- QilNode.cs
- OdbcEnvironment.cs
- XmlSchemaDocumentation.cs
- __FastResourceComparer.cs
- SetterBase.cs
- CodePageEncoding.cs
- XmlHelper.cs
- ArglessEventHandlerProxy.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- CodeSubDirectory.cs
- ButtonFlatAdapter.cs
- FontStretchConverter.cs
- HandleRef.cs
- DateTimeParse.cs
- DataListCommandEventArgs.cs
- returneventsaver.cs
- TextOptionsInternal.cs
- ProjectionPlan.cs
- PageRanges.cs
- PageCatalogPart.cs
- OdbcDataAdapter.cs
- BackEase.cs
- ProfileSettingsCollection.cs
- EntityTemplateFactory.cs
- PathGeometry.cs
- MediaContext.cs
- SiteMapNodeItem.cs
- IriParsingElement.cs
- SerializationSectionGroup.cs
- CodeThrowExceptionStatement.cs
- BitmapFrameEncode.cs
- ExpressionDumper.cs
- BlurEffect.cs
- SystemColors.cs
- thaishape.cs
- LogStore.cs
- ShapeTypeface.cs
- XmlNodeComparer.cs
- ButtonField.cs
- sqlcontext.cs
- SettingsAttributeDictionary.cs
- WebPartConnectionsCloseVerb.cs
- XmlFormatMapping.cs
- ColorConvertedBitmap.cs
- LineGeometry.cs
- NonClientArea.cs
- StylusPointPropertyInfo.cs
- EventEntry.cs
- CollectionChangeEventArgs.cs
- EventMappingSettingsCollection.cs
- shaper.cs
- CompressStream.cs
- CommandSet.cs
- Animatable.cs
- ZoneLinkButton.cs
- DataListDesigner.cs
- ClientConfigPaths.cs
- SocketException.cs
- WebBrowserPermission.cs
- TransportElement.cs
- ServerIdentity.cs
- XmlCustomFormatter.cs
- MimeFormReflector.cs
- ResolveInfo.cs
- BufferBuilder.cs
- LinqToSqlWrapper.cs
- CompilerGlobalScopeAttribute.cs
- ResourcesGenerator.cs
- PathData.cs
- SqlTransaction.cs
- GridViewUpdatedEventArgs.cs
- WebPartMenuStyle.cs
- MSHTMLHostUtil.cs
- FormViewDesigner.cs
- Encoding.cs
- Stack.cs
- SimpleMailWebEventProvider.cs
- Span.cs
- DependencyObjectCodeDomSerializer.cs
- ISO2022Encoding.cs
- SqlSupersetValidator.cs
- ProfileInfo.cs
- HttpChannelHelpers.cs
- DelegatingHeader.cs
- RepeaterCommandEventArgs.cs
- SelfSignedCertificate.cs