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
- Action.cs
- LambdaCompiler.Lambda.cs
- MexHttpBindingCollectionElement.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- DataBoundControlParameterTarget.cs
- EventManager.cs
- SspiNegotiationTokenProviderState.cs
- Int32Animation.cs
- AxWrapperGen.cs
- TextCompositionEventArgs.cs
- XPathScanner.cs
- AssemblyUtil.cs
- COM2PropertyDescriptor.cs
- WorkflowServiceBehavior.cs
- XmlNodeWriter.cs
- StreamGeometry.cs
- GenericUriParser.cs
- GradientBrush.cs
- Light.cs
- CachedPathData.cs
- _AuthenticationState.cs
- ParagraphResult.cs
- Geometry.cs
- ListViewItemMouseHoverEvent.cs
- DbConnectionClosed.cs
- AuthenticatingEventArgs.cs
- WinCategoryAttribute.cs
- ObfuscationAttribute.cs
- TypeConverter.cs
- XmlSchemaIdentityConstraint.cs
- SendMailErrorEventArgs.cs
- FixedStringLookup.cs
- SignatureToken.cs
- AuthorizationRuleCollection.cs
- XmlSchemaInclude.cs
- CornerRadius.cs
- ByteKeyFrameCollection.cs
- UserUseLicenseDictionaryLoader.cs
- ContractSearchPattern.cs
- EntityViewContainer.cs
- GACIdentityPermission.cs
- SchemaInfo.cs
- ProxyHelper.cs
- ComplexPropertyEntry.cs
- MenuItem.cs
- sqlpipe.cs
- ExpressionEditorAttribute.cs
- CodeTypeParameterCollection.cs
- DesignerTransactionCloseEvent.cs
- SqlDataSource.cs
- BindingValueChangedEventArgs.cs
- XmlStreamStore.cs
- TimeSpanSecondsConverter.cs
- CategoryGridEntry.cs
- QilName.cs
- XmlNamespaceDeclarationsAttribute.cs
- DoubleAnimationUsingPath.cs
- EditingScope.cs
- ImageAutomationPeer.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- Line.cs
- BamlStream.cs
- PageSetupDialog.cs
- ImportContext.cs
- MsmqTransportReceiveParameters.cs
- View.cs
- UntrustedRecipientException.cs
- DecoderBestFitFallback.cs
- MergablePropertyAttribute.cs
- ZipIOModeEnforcingStream.cs
- JoinTreeNode.cs
- WebPartsPersonalization.cs
- Viewport2DVisual3D.cs
- SignedPkcs7.cs
- DiagnosticsElement.cs
- HandlerWithFactory.cs
- FontStyleConverter.cs
- SafeRightsManagementSessionHandle.cs
- ProfilePropertyNameValidator.cs
- PopOutPanel.cs
- Root.cs
- CompileXomlTask.cs
- Oid.cs
- BitmapEffectInput.cs
- Flattener.cs
- NavigationWindowAutomationPeer.cs
- CustomPopupPlacement.cs
- DbUpdateCommandTree.cs
- RewritingProcessor.cs
- TextSchema.cs
- DataDocumentXPathNavigator.cs
- XmlSchemaNotation.cs
- EmbeddedObject.cs
- PropertiesTab.cs
- FixedSOMPage.cs
- QueryOptionExpression.cs
- XPathDocumentIterator.cs
- BuilderPropertyEntry.cs
- TagPrefixAttribute.cs
- SoapCodeExporter.cs