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
- Matrix.cs
- IndentTextWriter.cs
- CheckBoxList.cs
- ErrorFormatter.cs
- ColumnResizeAdorner.cs
- DefaultAuthorizationContext.cs
- CodeThrowExceptionStatement.cs
- ExpressionBuilder.cs
- LayoutTable.cs
- DecoderFallback.cs
- Maps.cs
- SynchronizedDispatch.cs
- DesignUtil.cs
- AnnouncementEndpoint.cs
- TraceUtility.cs
- CharEnumerator.cs
- TextCompositionManager.cs
- UMPAttributes.cs
- LoginDesigner.cs
- SqlDependencyListener.cs
- MergeLocalizationDirectives.cs
- HeaderElement.cs
- FtpCachePolicyElement.cs
- CheckBoxPopupAdapter.cs
- MachineKeyValidationConverter.cs
- EmbeddedObject.cs
- AuthenticationModuleElement.cs
- FontConverter.cs
- IdentityValidationException.cs
- StrokeNodeEnumerator.cs
- ConversionValidationRule.cs
- DictionaryKeyPropertyAttribute.cs
- DelegatedStream.cs
- FormsAuthentication.cs
- IsolationInterop.cs
- HostedElements.cs
- XmlSubtreeReader.cs
- CallbackValidatorAttribute.cs
- FormViewPageEventArgs.cs
- Quaternion.cs
- WebPartChrome.cs
- MarkupCompilePass1.cs
- SoapAttributeOverrides.cs
- SharedPerformanceCounter.cs
- RegistryPermission.cs
- DataGridViewSelectedColumnCollection.cs
- Interlocked.cs
- TreeNodeEventArgs.cs
- ConnectionStringSettingsCollection.cs
- DataGridItemEventArgs.cs
- DataServiceHostFactory.cs
- ContextMenuService.cs
- ObjectSet.cs
- CodeSpit.cs
- MaterializeFromAtom.cs
- LinkLabel.cs
- LoginDesigner.cs
- XmlArrayAttribute.cs
- OutputWindow.cs
- ForceCopyBuildProvider.cs
- MethodCallExpression.cs
- TableLayoutPanel.cs
- EncoderNLS.cs
- TextEditor.cs
- FlowDocumentPaginator.cs
- DesignerActionGlyph.cs
- Stroke.cs
- Claim.cs
- AdapterUtil.cs
- ProcessHostMapPath.cs
- VBIdentifierNameEditor.cs
- StyleTypedPropertyAttribute.cs
- DecoderReplacementFallback.cs
- XmlSchemaComplexContent.cs
- DelegateCompletionCallbackWrapper.cs
- UnsafeNativeMethods.cs
- SiteOfOriginPart.cs
- SharedDp.cs
- ClientCredentialsSecurityTokenManager.cs
- GlyphTypeface.cs
- DataGridViewColumnCollectionDialog.cs
- SemanticAnalyzer.cs
- XmlMembersMapping.cs
- ChannelManagerService.cs
- GZipDecoder.cs
- ColumnMap.cs
- ServiceAuthorizationBehavior.cs
- BaseUriHelper.cs
- StateMachineSubscription.cs
- WebPartDescriptionCollection.cs
- Brush.cs
- Container.cs
- cookie.cs
- PropertyGeneratedEventArgs.cs
- ValidationError.cs
- TargetConverter.cs
- OdbcFactory.cs
- HebrewNumber.cs
- NetSectionGroup.cs
- TableMethodGenerator.cs