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
- ConfigurationManager.cs
- CodeSnippetCompileUnit.cs
- CodeCatchClauseCollection.cs
- SortAction.cs
- FormatSettings.cs
- Renderer.cs
- _FtpDataStream.cs
- DataSetMappper.cs
- MsmqMessageSerializationFormat.cs
- PowerModeChangedEventArgs.cs
- DataExpression.cs
- AnnotationDocumentPaginator.cs
- FunctionDetailsReader.cs
- HostProtectionPermission.cs
- ObjectViewQueryResultData.cs
- DeclaredTypeElementCollection.cs
- KeyValuePairs.cs
- BitmapMetadataEnumerator.cs
- DetailsViewRow.cs
- ReaderWriterLockWrapper.cs
- HtmlControl.cs
- CryptoStream.cs
- Form.cs
- DefaultWorkflowTransactionService.cs
- CodeFieldReferenceExpression.cs
- StoreConnection.cs
- EntitySqlQueryCacheEntry.cs
- Set.cs
- SemanticAnalyzer.cs
- SqlFactory.cs
- EventPropertyMap.cs
- ToolStripItemImageRenderEventArgs.cs
- MimeObjectFactory.cs
- TextWriter.cs
- TemplateControlBuildProvider.cs
- PrintDialog.cs
- ParameterSubsegment.cs
- CodeParameterDeclarationExpression.cs
- DataIdProcessor.cs
- CodeObjectCreateExpression.cs
- TypeDescriptor.cs
- EnvelopedPkcs7.cs
- RefreshEventArgs.cs
- KeyToListMap.cs
- SerializationSectionGroup.cs
- Choices.cs
- ResourceExpressionBuilder.cs
- EncoderParameters.cs
- HttpHeaderCollection.cs
- LayeredChannelFactory.cs
- base64Transforms.cs
- DataSourceCache.cs
- TargetControlTypeAttribute.cs
- NotificationContext.cs
- Single.cs
- XPathChildIterator.cs
- HMACSHA384.cs
- MexHttpBindingCollectionElement.cs
- XmlReflectionImporter.cs
- WebPartZone.cs
- ConfigurationValues.cs
- ProtocolsConfiguration.cs
- SqlProcedureAttribute.cs
- OptimisticConcurrencyException.cs
- TableAdapterManagerGenerator.cs
- SocketElement.cs
- InstalledFontCollection.cs
- SQLSingle.cs
- NameNode.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- CustomSignedXml.cs
- SmtpLoginAuthenticationModule.cs
- BitmapPalette.cs
- XmlBaseWriter.cs
- HtmlTernaryTree.cs
- DataTableTypeConverter.cs
- EventRoute.cs
- DataGridToolTip.cs
- _FtpDataStream.cs
- WebPartMenu.cs
- XhtmlConformanceSection.cs
- MessageLogTraceRecord.cs
- SecurityContext.cs
- FrameworkTextComposition.cs
- RepeaterItem.cs
- ApplicationFileParser.cs
- ResponseStream.cs
- JoinElimination.cs
- TextParentUndoUnit.cs
- MeasureItemEvent.cs
- BooleanExpr.cs
- DomNameTable.cs
- CfgParser.cs
- XmlSerializerOperationBehavior.cs
- LinqDataView.cs
- SQLBoolean.cs
- ConnectionPointCookie.cs
- FloatAverageAggregationOperator.cs
- EntitySet.cs
- TraceHandlerErrorFormatter.cs