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
- QuotedStringWriteStateInfo.cs
- PropertyRecord.cs
- SecurityPermission.cs
- SqlRowUpdatedEvent.cs
- GroupByQueryOperator.cs
- WebPartDisplayModeEventArgs.cs
- ProcessInputEventArgs.cs
- AppSettingsExpressionBuilder.cs
- EnumBuilder.cs
- DeriveBytes.cs
- XmlChildEnumerator.cs
- AsyncCompletedEventArgs.cs
- ObjectResult.cs
- XhtmlBasicCalendarAdapter.cs
- ContainerParaClient.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- RoutedEventHandlerInfo.cs
- StateFinalizationActivity.cs
- WebBrowserSiteBase.cs
- SimpleTableProvider.cs
- SystemPens.cs
- ComponentCache.cs
- EditCommandColumn.cs
- StreamGeometryContext.cs
- TransformConverter.cs
- AttributeEmitter.cs
- XmlJsonReader.cs
- ControlPaint.cs
- ResourceKey.cs
- HttpGetProtocolImporter.cs
- Decoder.cs
- Predicate.cs
- RemoteWebConfigurationHostStream.cs
- Transaction.cs
- TextEffect.cs
- GCHandleCookieTable.cs
- BufferCache.cs
- MultiAsyncResult.cs
- ExpressionBinding.cs
- EnumValAlphaComparer.cs
- WinOEToolBoxItem.cs
- ColumnClickEvent.cs
- FlowLayout.cs
- HtmlWindowCollection.cs
- _Connection.cs
- GACIdentityPermission.cs
- HttpResponseHeader.cs
- ValueTypeFixupInfo.cs
- DataViewManagerListItemTypeDescriptor.cs
- StaticTextPointer.cs
- SqlUDTStorage.cs
- SafeLocalMemHandle.cs
- ResXDataNode.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TrackBarRenderer.cs
- StateRuntime.cs
- DiffuseMaterial.cs
- DialogResultConverter.cs
- QilValidationVisitor.cs
- BeginStoryboard.cs
- WebPartAddingEventArgs.cs
- Win32Native.cs
- CodeAttributeArgumentCollection.cs
- Int16Storage.cs
- InvalidFilterCriteriaException.cs
- ImageKeyConverter.cs
- AuthenticationManager.cs
- NativeActivityMetadata.cs
- NavigationEventArgs.cs
- NameSpaceEvent.cs
- ResourceKey.cs
- MenuItemStyle.cs
- GridViewAutomationPeer.cs
- SharedDp.cs
- ImageDrawing.cs
- WebBrowserContainer.cs
- XsdDateTime.cs
- ReflectTypeDescriptionProvider.cs
- DocumentViewerConstants.cs
- DictionarySectionHandler.cs
- DispatcherHooks.cs
- NotSupportedException.cs
- JapaneseLunisolarCalendar.cs
- X509RawDataKeyIdentifierClause.cs
- ListViewInsertEventArgs.cs
- ColorBuilder.cs
- DesignerCommandAdapter.cs
- FileDetails.cs
- EventMappingSettings.cs
- TypeDescriptor.cs
- ShutDownListener.cs
- SelectionRange.cs
- DefaultMemberAttribute.cs
- PopupControlService.cs
- TableLayout.cs
- DynamicDiscoveryDocument.cs
- DataSourceProvider.cs
- IconBitmapDecoder.cs
- UIInitializationException.cs
- ScriptComponentDescriptor.cs