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
- PathGeometry.cs
- ScaleTransform.cs
- ImageAttributes.cs
- PassportAuthenticationEventArgs.cs
- NameValuePermission.cs
- ValuePatternIdentifiers.cs
- Utils.cs
- TimerElapsedEvenArgs.cs
- errorpatternmatcher.cs
- DynamicActionMessageFilter.cs
- FileDetails.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- dsa.cs
- UndoEngine.cs
- TextAdaptor.cs
- ExclusiveTcpTransportManager.cs
- GridViewSortEventArgs.cs
- BaseTemplateParser.cs
- WebPartTransformerAttribute.cs
- ScrollPattern.cs
- LineProperties.cs
- xsdvalidator.cs
- DeferredReference.cs
- PartitionResolver.cs
- GridViewDeletedEventArgs.cs
- RegexGroupCollection.cs
- InputScopeNameConverter.cs
- CustomWebEventKey.cs
- BaseTreeIterator.cs
- InternalMappingException.cs
- XmlToDatasetMap.cs
- ApplicationInfo.cs
- XmlSerializerSection.cs
- wgx_render.cs
- ContractMapping.cs
- MostlySingletonList.cs
- CatalogPart.cs
- HtmlGenericControl.cs
- AsyncPostBackErrorEventArgs.cs
- Cursor.cs
- CodeObjectCreateExpression.cs
- DesignerDataColumn.cs
- TrailingSpaceComparer.cs
- EncodingTable.cs
- TextTreeFixupNode.cs
- MemberCollection.cs
- RecordManager.cs
- RangeValidator.cs
- ButtonBase.cs
- DataGridViewElement.cs
- MD5Cng.cs
- BatchStream.cs
- DiagnosticsConfiguration.cs
- OperationPerformanceCounters.cs
- PersonalizationStateInfoCollection.cs
- Mouse.cs
- TypeContext.cs
- ServiceContractListItemList.cs
- BridgeDataRecord.cs
- FullTextState.cs
- MasterPage.cs
- TagPrefixCollection.cs
- X509Utils.cs
- TableLayoutPanelBehavior.cs
- CqlParserHelpers.cs
- ControlDesigner.cs
- SqlTransaction.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- SerializationFieldInfo.cs
- HtmlInputControl.cs
- InvokePattern.cs
- ZipIOLocalFileBlock.cs
- FixUp.cs
- OleTxTransactionInfo.cs
- ForceCopyBuildProvider.cs
- ResourceDescriptionAttribute.cs
- ExpressionReplacer.cs
- GeometryGroup.cs
- TableParaClient.cs
- FormsAuthenticationUserCollection.cs
- EventRouteFactory.cs
- KeyGestureValueSerializer.cs
- TypedReference.cs
- XmlSerializationGeneratedCode.cs
- XmlDataContract.cs
- ScriptResourceHandler.cs
- _StreamFramer.cs
- BufferedReadStream.cs
- WindowInteractionStateTracker.cs
- _NetRes.cs
- ConditionalAttribute.cs
- PointConverter.cs
- SetStoryboardSpeedRatio.cs
- _UriTypeConverter.cs
- ObjectContext.cs
- FormsAuthenticationTicket.cs
- BufferAllocator.cs
- UriParserTemplates.cs
- MailDefinitionBodyFileNameEditor.cs
- ReferenceService.cs