Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextSerializer.cs
- GridViewHeaderRowPresenter.cs
- ChangeTracker.cs
- WebBrowserNavigatingEventHandler.cs
- Brush.cs
- TrustManagerPromptUI.cs
- HybridDictionary.cs
- XmlObjectSerializerReadContext.cs
- FixedSOMPage.cs
- AtomServiceDocumentSerializer.cs
- ToolStripItem.cs
- OracleParameter.cs
- PictureBox.cs
- XmlQueryOutput.cs
- InputBinding.cs
- SpeakInfo.cs
- xmlfixedPageInfo.cs
- DefaultWorkflowTransactionService.cs
- DataGridItem.cs
- TypeUtil.cs
- MD5.cs
- File.cs
- ButtonFieldBase.cs
- Random.cs
- TransportDefaults.cs
- DesignerWidgets.cs
- ReadWriteSpinLock.cs
- DefaultValueConverter.cs
- AccessDataSourceWizardForm.cs
- XslNumber.cs
- HMACSHA512.cs
- ServiceHostingEnvironmentSection.cs
- DataGridViewRowConverter.cs
- SmtpMail.cs
- ArgumentOutOfRangeException.cs
- CompilerParameters.cs
- CompositeTypefaceMetrics.cs
- HttpsHostedTransportConfiguration.cs
- EventData.cs
- WebPartDisplayModeCollection.cs
- Point.cs
- AuthenticatingEventArgs.cs
- QueryOperationResponseOfT.cs
- HandleTable.cs
- XPathMultyIterator.cs
- SharedPerformanceCounter.cs
- XsdBuildProvider.cs
- MethodAccessException.cs
- RoutingEndpointTrait.cs
- BitmapEffectGroup.cs
- XmlHierarchicalEnumerable.cs
- PropertyChangedEventArgs.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- QueryOperationResponseOfT.cs
- ToggleButton.cs
- FormClosedEvent.cs
- SecurityTokenSerializer.cs
- Configuration.cs
- System.Data.OracleClient_BID.cs
- EventLogEntryCollection.cs
- BuildDependencySet.cs
- TempEnvironment.cs
- DbQueryCommandTree.cs
- DataComponentGenerator.cs
- WindowsRegion.cs
- ListControlDataBindingHandler.cs
- SQLRoleProvider.cs
- IsolatedStoragePermission.cs
- VersionedStream.cs
- StorageEntityContainerMapping.cs
- xdrvalidator.cs
- ColumnProvider.cs
- WebResourceAttribute.cs
- Literal.cs
- MenuItem.cs
- BoundColumn.cs
- DesignerSelectionListAdapter.cs
- SqlServices.cs
- VirtualDirectoryMapping.cs
- DesignerHelpers.cs
- DecoderNLS.cs
- ToolStripSystemRenderer.cs
- CheckBoxStandardAdapter.cs
- UnknownWrapper.cs
- AuthenticationService.cs
- ExpandoClass.cs
- Filter.cs
- ReadWriteObjectLock.cs
- TextLine.cs
- _ListenerRequestStream.cs
- ClusterRegistryConfigurationProvider.cs
- SessionEndedEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- IsolationInterop.cs
- Stackframe.cs
- Helpers.cs
- Rules.cs
- FileStream.cs
- TypedTableBase.cs
- DescriptionAttribute.cs