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
- AutoResizedEvent.cs
- CallbackTimeoutsElement.cs
- ComponentChangingEvent.cs
- AssemblyAttributes.cs
- MultiViewDesigner.cs
- UrlParameterWriter.cs
- CompilationUnit.cs
- LocatorManager.cs
- XmlQualifiedName.cs
- ImageSource.cs
- Inline.cs
- FixedSOMPageElement.cs
- Cursors.cs
- XmlBoundElement.cs
- SequentialActivityDesigner.cs
- SafeCoTaskMem.cs
- SamlAttribute.cs
- PageParser.cs
- DataListItemEventArgs.cs
- ReachIDocumentPaginatorSerializer.cs
- ListItemCollection.cs
- EllipseGeometry.cs
- BrowserCapabilitiesFactory35.cs
- SelectorItemAutomationPeer.cs
- PathTooLongException.cs
- FontFamilyIdentifier.cs
- CodeCommentStatement.cs
- ElementNotEnabledException.cs
- PersistNameAttribute.cs
- ComponentCommands.cs
- XmlWrappingReader.cs
- RenderingBiasValidation.cs
- XsdDuration.cs
- TextRangeAdaptor.cs
- IPPacketInformation.cs
- SessionPageStateSection.cs
- CompilationUnit.cs
- CollectionBase.cs
- XmlName.cs
- WorkflowTransactionService.cs
- DrawingCollection.cs
- UpDownEvent.cs
- OleDbParameterCollection.cs
- _LoggingObject.cs
- XmlSchemaAnyAttribute.cs
- Converter.cs
- MgmtResManager.cs
- PointLightBase.cs
- EventToken.cs
- FilterQuery.cs
- IPipelineRuntime.cs
- DataSourceHelper.cs
- ComponentResourceManager.cs
- FixedElement.cs
- TypeBuilderInstantiation.cs
- TextSimpleMarkerProperties.cs
- PersonalizationProviderHelper.cs
- DetailsViewModeEventArgs.cs
- CalendarKeyboardHelper.cs
- AssemblyGen.cs
- SizeAnimationBase.cs
- TrackingCondition.cs
- DataGridViewComboBoxColumn.cs
- WebPartEditVerb.cs
- ExpressionPrinter.cs
- SmiXetterAccessMap.cs
- ScriptingSectionGroup.cs
- MetadataProperty.cs
- RightsManagementPermission.cs
- DecimalAnimationBase.cs
- DynamicResourceExtensionConverter.cs
- StateManagedCollection.cs
- SplineQuaternionKeyFrame.cs
- XmlValidatingReaderImpl.cs
- SocketInformation.cs
- _emptywebproxy.cs
- ModelItemKeyValuePair.cs
- SettingsPropertyValueCollection.cs
- ProjectionCamera.cs
- DecoratedNameAttribute.cs
- ResolveCriteria.cs
- Walker.cs
- ParallelTimeline.cs
- ExpressionLink.cs
- ConcurrencyBehavior.cs
- SimpleMailWebEventProvider.cs
- GlyphInfoList.cs
- FloaterParaClient.cs
- GPPOINT.cs
- UnsafeNativeMethods.cs
- WebPartConnectionsEventArgs.cs
- XmlSchemaAnyAttribute.cs
- IssuedTokenServiceElement.cs
- _NestedSingleAsyncResult.cs
- DecimalConverter.cs
- ValueCollectionParameterReader.cs
- Point.cs
- DataSourceCacheDurationConverter.cs
- ResXFileRef.cs
- ShaderEffect.cs