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
- Stopwatch.cs
- DataGridViewCellCollection.cs
- PointConverter.cs
- __ComObject.cs
- EntityDataSource.cs
- BaseDataList.cs
- SystemFonts.cs
- SqlTriggerAttribute.cs
- NotCondition.cs
- SizeConverter.cs
- TimeSpanValidator.cs
- XamlBuildProvider.cs
- TextElementCollectionHelper.cs
- ObjectSet.cs
- ScriptHandlerFactory.cs
- ToolStripItemGlyph.cs
- ExpressionBindingCollection.cs
- AppDomainAttributes.cs
- XamlFigureLengthSerializer.cs
- XmlCompatibilityReader.cs
- FileSecurity.cs
- Span.cs
- TypeConverterHelper.cs
- ClearTypeHintValidation.cs
- ControlParameter.cs
- WebGetAttribute.cs
- ProviderMetadata.cs
- DataSourceCacheDurationConverter.cs
- DependencyPropertyDescriptor.cs
- WsdlBuildProvider.cs
- sqlmetadatafactory.cs
- ActionItem.cs
- ActivityTypeResolver.xaml.cs
- MenuItemBindingCollection.cs
- PropertyHelper.cs
- StorageMappingFragment.cs
- CollectionChangeEventArgs.cs
- ColumnHeader.cs
- SourceItem.cs
- TemplateField.cs
- EventLogSession.cs
- BidOverLoads.cs
- BinaryParser.cs
- Menu.cs
- PageAdapter.cs
- FileCodeGroup.cs
- XamlInt32CollectionSerializer.cs
- DataGridViewCellValidatingEventArgs.cs
- SymLanguageType.cs
- Roles.cs
- Helpers.cs
- WorkItem.cs
- ObjectStorage.cs
- GCHandleCookieTable.cs
- XmlSchemaAll.cs
- DataContractAttribute.cs
- AuthorizationContext.cs
- DBDataPermission.cs
- PageThemeBuildProvider.cs
- WinEventWrap.cs
- RotateTransform3D.cs
- ResourceExpression.cs
- SafeArrayTypeMismatchException.cs
- DriveNotFoundException.cs
- ServicePointManagerElement.cs
- CollectionView.cs
- WizardStepBase.cs
- StylusPoint.cs
- TimeZone.cs
- PolicyManager.cs
- _HeaderInfo.cs
- Point3DAnimation.cs
- MaterialGroup.cs
- Maps.cs
- ScriptIgnoreAttribute.cs
- XMLUtil.cs
- TreeNodeStyle.cs
- IndexOutOfRangeException.cs
- ScrollData.cs
- CompensationDesigner.cs
- SystemInfo.cs
- DispatcherEventArgs.cs
- NumericUpDown.cs
- X509PeerCertificateAuthentication.cs
- Axis.cs
- ConfigurationValue.cs
- StreamUpdate.cs
- ToolZone.cs
- ReliableSessionBindingElement.cs
- CollectionViewSource.cs
- WebDescriptionAttribute.cs
- XmlSchemaImport.cs
- Encoder.cs
- XamlTypeMapper.cs
- SessionStateContainer.cs
- XmlSerializationReader.cs
- BrowserDefinitionCollection.cs
- X509ThumbprintKeyIdentifierClause.cs
- HttpAsyncResult.cs
- SqlServer2KCompatibilityAnnotation.cs