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
- WinEventTracker.cs
- RowToParametersTransformer.cs
- EdmConstants.cs
- _SpnDictionary.cs
- StatusBarItem.cs
- DomNameTable.cs
- xmlformatgeneratorstatics.cs
- InfoCardArgumentException.cs
- MouseEvent.cs
- TypeConverterAttribute.cs
- SQLInt16.cs
- EventProperty.cs
- Registration.cs
- VariableReference.cs
- ElementHost.cs
- OdbcConnectionString.cs
- GeometryCollection.cs
- Propagator.Evaluator.cs
- ModuleBuilderData.cs
- WebServiceTypeData.cs
- Image.cs
- XmlParserContext.cs
- XmlAnyElementAttribute.cs
- MediaPlayerState.cs
- RequestChannel.cs
- SessionEndingEventArgs.cs
- XmlTextReaderImplHelpers.cs
- DataGridViewCellStyle.cs
- IdentityNotMappedException.cs
- ColumnCollectionEditor.cs
- Graphics.cs
- ChannelServices.cs
- LocatorPart.cs
- NamespaceMapping.cs
- ToolStripSplitButton.cs
- DataServiceHostFactory.cs
- TouchEventArgs.cs
- SchemaNamespaceManager.cs
- LogicalExpr.cs
- Task.cs
- SuppressedPackageProperties.cs
- Context.cs
- ProfileService.cs
- Pair.cs
- SimpleBitVector32.cs
- ClientSideQueueItem.cs
- RefreshEventArgs.cs
- DoWorkEventArgs.cs
- ColumnWidthChangedEvent.cs
- DetailsViewInsertEventArgs.cs
- WorkflowViewService.cs
- OutputCacheSettings.cs
- DataGridViewRowHeaderCell.cs
- SimpleHandlerFactory.cs
- StrokeNodeOperations.cs
- NativeMethods.cs
- ObjectNotFoundException.cs
- TypeConverterValueSerializer.cs
- SchemaTypeEmitter.cs
- TagPrefixCollection.cs
- SqlDataSourceCustomCommandEditor.cs
- X509SecurityTokenAuthenticator.cs
- MultipleViewProviderWrapper.cs
- Automation.cs
- DeleteCardRequest.cs
- SqlBulkCopyColumnMapping.cs
- DBSqlParser.cs
- SqlConnectionString.cs
- Size3DConverter.cs
- ValidationError.cs
- FrameworkObject.cs
- SharedPerformanceCounter.cs
- TextRangeProviderWrapper.cs
- SqlProvider.cs
- TransactionFlowBindingElement.cs
- ImageCodecInfo.cs
- PrimaryKeyTypeConverter.cs
- TimeZone.cs
- Query.cs
- ClientScriptManager.cs
- SrgsOneOf.cs
- GenericTypeParameterBuilder.cs
- AdornerPresentationContext.cs
- CodeThrowExceptionStatement.cs
- ResourceDictionary.cs
- SmiConnection.cs
- ListView.cs
- SynchronousSendBindingElement.cs
- SmtpReplyReader.cs
- SHA512.cs
- lengthconverter.cs
- FileClassifier.cs
- Activation.cs
- HtmlAnchor.cs
- RecordConverter.cs
- CollectionChangedEventManager.cs
- X500Name.cs
- FilteredAttributeCollection.cs
- ProfilePropertyNameValidator.cs
- Matrix3D.cs