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
- DesignerGenericWebPart.cs
- ManagedWndProcTracker.cs
- ProcessModelInfo.cs
- FixedFlowMap.cs
- SiteMapProvider.cs
- TextElementCollection.cs
- BindingSource.cs
- SQLByteStorage.cs
- PtsContext.cs
- DoubleSumAggregationOperator.cs
- RegexMatchCollection.cs
- SqlHelper.cs
- EventManager.cs
- ComplexObject.cs
- BStrWrapper.cs
- XmlNamespaceDeclarationsAttribute.cs
- QueryOutputWriter.cs
- OpenTypeLayoutCache.cs
- DataGridViewCellEventArgs.cs
- UserControl.cs
- X509Extension.cs
- ScrollBarRenderer.cs
- ZipIOBlockManager.cs
- LineBreak.cs
- BuildResult.cs
- SqlHelper.cs
- DataGridViewDataErrorEventArgs.cs
- BasicBrowserDialog.cs
- TimersDescriptionAttribute.cs
- DrawTreeNodeEventArgs.cs
- MemoryPressure.cs
- JapaneseCalendar.cs
- BinaryObjectReader.cs
- ConfigurationLoader.cs
- KnownTypesProvider.cs
- FrameDimension.cs
- IntranetCredentialPolicy.cs
- DeferredRunTextReference.cs
- HtmlInputPassword.cs
- PhonemeConverter.cs
- EdmToObjectNamespaceMap.cs
- pingexception.cs
- RsaKeyGen.cs
- CharKeyFrameCollection.cs
- ConfigXmlReader.cs
- InboundActivityHelper.cs
- Properties.cs
- KeyboardNavigation.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- OraclePermission.cs
- DataGridViewCellPaintingEventArgs.cs
- HTTPNotFoundHandler.cs
- ExpressionConverter.cs
- Maps.cs
- UnsafeNativeMethods.cs
- Stylesheet.cs
- EnumMember.cs
- XmlSchemaChoice.cs
- RunClient.cs
- Run.cs
- PeerObject.cs
- TickBar.cs
- MouseOverProperty.cs
- WorkflowQueuingService.cs
- NameSpaceEvent.cs
- Size3DConverter.cs
- JumpItem.cs
- OpenTypeLayoutCache.cs
- ItemCheckedEvent.cs
- DataControlFieldCell.cs
- SchemaImporterExtensionElement.cs
- ModifyActivitiesPropertyDescriptor.cs
- SpellerError.cs
- DiscoveryClientDocuments.cs
- RangeValueProviderWrapper.cs
- AutomationPropertyInfo.cs
- SharedUtils.cs
- ListCommandEventArgs.cs
- QuotedStringFormatReader.cs
- AccessedThroughPropertyAttribute.cs
- Vars.cs
- GenericEnumerator.cs
- LogicalTreeHelper.cs
- DefaultObjectMappingItemCollection.cs
- CategoriesDocumentFormatter.cs
- SafeMILHandle.cs
- StyleCollection.cs
- Int32.cs
- DataGridViewColumnCollection.cs
- CodeEventReferenceExpression.cs
- ComponentManagerBroker.cs
- XmlSchemaParticle.cs
- ListMarkerLine.cs
- PointAnimationBase.cs
- ResourceExpressionBuilder.cs
- XPathDescendantIterator.cs
- PersonalizationState.cs
- BaseCollection.cs
- ClientScriptManager.cs
- DispatcherExceptionFilterEventArgs.cs