Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / InteropServices / ExternalException.cs / 1 / ExternalException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ExternalException ** ** ** Purpose: Exception base class for all errors from Interop or Structured ** Exception Handling code. ** ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; // Base exception for COM Interop errors &; Structured Exception Handler // exceptions. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class ExternalException : SystemException { public ExternalException() : base(Environment.GetResourceString("Arg_ExternalException")) { SetErrorCode(__HResults.E_FAIL); } public ExternalException(String message) : base(message) { SetErrorCode(__HResults.E_FAIL); } public ExternalException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.E_FAIL); } public ExternalException(String message,int errorCode) : base(message) { SetErrorCode(errorCode); } protected ExternalException(SerializationInfo info, StreamingContext context) : base(info, context) { } public virtual int ErrorCode { get { return HResult; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecureUICommand.cs
- CommandHelpers.cs
- CachedResourceDictionaryExtension.cs
- PagedControl.cs
- ListControlConvertEventArgs.cs
- InArgument.cs
- CultureInfoConverter.cs
- CodeDefaultValueExpression.cs
- InfoCardBinaryReader.cs
- ThrowHelper.cs
- MediaTimeline.cs
- LineVisual.cs
- SecurityTokenValidationException.cs
- SplitterPanel.cs
- KeyGestureConverter.cs
- MetadataHelper.cs
- CounterCreationDataCollection.cs
- BaseCodePageEncoding.cs
- MappingSource.cs
- ReadOnlyNameValueCollection.cs
- AnnotationComponentChooser.cs
- SelectionItemPattern.cs
- ProgressBar.cs
- ImageClickEventArgs.cs
- EntitySet.cs
- StringFunctions.cs
- DynamicPropertyHolder.cs
- Clipboard.cs
- ImageFormat.cs
- securitycriticaldata.cs
- Rect3DConverter.cs
- AbstractDataSvcMapFileLoader.cs
- CodeDomLoader.cs
- CrossSiteScriptingValidation.cs
- DateTimePicker.cs
- QueryExpr.cs
- XmlSchemaInfo.cs
- ConfigXmlSignificantWhitespace.cs
- ClientTarget.cs
- SplineKeyFrames.cs
- DBDataPermissionAttribute.cs
- RuntimeResourceSet.cs
- DNS.cs
- ObjectStateManagerMetadata.cs
- TextBox.cs
- SimpleRecyclingCache.cs
- MailBnfHelper.cs
- Compiler.cs
- ContextStack.cs
- BitmapEffectGeneralTransform.cs
- ClientSession.cs
- SqlDataSourceStatusEventArgs.cs
- Stack.cs
- SqlFormatter.cs
- CodeTypeReferenceCollection.cs
- AnnotationService.cs
- JoinGraph.cs
- RegularExpressionValidator.cs
- HierarchicalDataSourceDesigner.cs
- PerformanceCounterManager.cs
- SqlConnectionString.cs
- DatatypeImplementation.cs
- DesignerProperties.cs
- updateconfighost.cs
- XmlElementList.cs
- APCustomTypeDescriptor.cs
- ErrorTableItemStyle.cs
- SubstitutionList.cs
- ThreadStaticAttribute.cs
- Thickness.cs
- DataBindingCollection.cs
- ContextMenuAutomationPeer.cs
- CultureSpecificStringDictionary.cs
- OuterGlowBitmapEffect.cs
- WindowsRegion.cs
- PreviewPageInfo.cs
- PropertyKey.cs
- PackageDocument.cs
- GridViewUpdateEventArgs.cs
- OpenTypeLayout.cs
- PhysicalFontFamily.cs
- PageParserFilter.cs
- IgnoreFileBuildProvider.cs
- FormsAuthenticationUserCollection.cs
- PartialArray.cs
- TextDocumentView.cs
- ListView.cs
- BitmapEffectCollection.cs
- AnnotationResourceCollection.cs
- PrinterUnitConvert.cs
- DateTimeFormat.cs
- AppDomainManager.cs
- ListViewDeletedEventArgs.cs
- ProfileParameter.cs
- IndexedSelectQueryOperator.cs
- TextEditorCopyPaste.cs
- PhonemeEventArgs.cs
- SecurityUtils.cs
- cryptoapiTransform.cs
- LineSegment.cs