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
- FusionWrap.cs
- CfgSemanticTag.cs
- KeyMatchBuilder.cs
- PathGradientBrush.cs
- CollectionBuilder.cs
- Grid.cs
- ClientSettingsStore.cs
- StylusOverProperty.cs
- DataGridViewColumnConverter.cs
- PageCatalogPartDesigner.cs
- TerminatorSinks.cs
- PerspectiveCamera.cs
- XmlComplianceUtil.cs
- TypeValidationEventArgs.cs
- TemplateInstanceAttribute.cs
- PageCatalogPart.cs
- SoapAttributes.cs
- UpdatePanelTrigger.cs
- MTConfigUtil.cs
- SecurityAppliedMessage.cs
- CacheMode.cs
- TemplatedMailWebEventProvider.cs
- ItemCheckedEvent.cs
- ScrollableControl.cs
- ControlCommandSet.cs
- ObservableDictionary.cs
- WebAdminConfigurationHelper.cs
- ListBoxItem.cs
- UpdateDelegates.Generated.cs
- AnnotationService.cs
- MatrixValueSerializer.cs
- PerformanceCounterPermissionEntryCollection.cs
- HMACRIPEMD160.cs
- QuaternionRotation3D.cs
- Semaphore.cs
- AppSettingsExpressionBuilder.cs
- remotingproxy.cs
- NavigationProperty.cs
- ExpressionEditor.cs
- DependencyObjectType.cs
- WindowsToolbarItemAsMenuItem.cs
- SoapSchemaMember.cs
- BitmapEffectGeneralTransform.cs
- JsonEnumDataContract.cs
- QueueProcessor.cs
- ProfileBuildProvider.cs
- MeshGeometry3D.cs
- PropertyIdentifier.cs
- PageTheme.cs
- DefaultObjectMappingItemCollection.cs
- ProcessHost.cs
- XslVisitor.cs
- CaseExpr.cs
- PropertyPath.cs
- MetadataException.cs
- MetadataCache.cs
- PowerModeChangedEventArgs.cs
- ConfigurationPermission.cs
- CTreeGenerator.cs
- SubtreeProcessor.cs
- ParameterBuilder.cs
- TabItem.cs
- RequestCacheEntry.cs
- FileDialog_Vista.cs
- TimeSpanMinutesConverter.cs
- SiteMapPath.cs
- UserControlBuildProvider.cs
- SmiSettersStream.cs
- UserPreference.cs
- SHA1CryptoServiceProvider.cs
- URLIdentityPermission.cs
- EmptyCollection.cs
- FieldInfo.cs
- BeginEvent.cs
- RegisteredDisposeScript.cs
- XmlDataSourceNodeDescriptor.cs
- ElementMarkupObject.cs
- StreamReader.cs
- DbConnectionPoolCounters.cs
- RoleBoolean.cs
- TreeViewItemAutomationPeer.cs
- ProcessingInstructionAction.cs
- Style.cs
- SafeNativeMethods.cs
- VoiceObjectToken.cs
- CharEntityEncoderFallback.cs
- ProfileSection.cs
- CultureMapper.cs
- ConstraintConverter.cs
- ErrorRuntimeConfig.cs
- DataContext.cs
- TextBoxAutoCompleteSourceConverter.cs
- Schedule.cs
- QueryStringParameter.cs
- StretchValidation.cs
- PackageRelationship.cs
- AspNetSynchronizationContext.cs
- DrawingGroupDrawingContext.cs
- CaseExpr.cs
- ObjectStateManagerMetadata.cs