Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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; } } } } // 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
- RtfNavigator.cs
- TcpStreams.cs
- HitTestFilterBehavior.cs
- ContextMenuStrip.cs
- ListenerPerfCounters.cs
- XPathNavigator.cs
- TransformGroup.cs
- ConfigUtil.cs
- CursorConverter.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- RepeaterItemEventArgs.cs
- RegexReplacement.cs
- CurrentTimeZone.cs
- StaticContext.cs
- RestClientProxyHandler.cs
- PropertyInformation.cs
- CompiledIdentityConstraint.cs
- SiteMapProvider.cs
- entityreference_tresulttype.cs
- ClipboardData.cs
- ToolTipService.cs
- WindowsTooltip.cs
- XmlElementList.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- FixedPageStructure.cs
- StrongNameMembershipCondition.cs
- XmlQueryCardinality.cs
- ResXResourceWriter.cs
- MatrixAnimationUsingPath.cs
- DataGridViewButtonCell.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ErrorFormatter.cs
- DoubleLinkList.cs
- DoubleAnimation.cs
- FtpWebRequest.cs
- DynamicDocumentPaginator.cs
- ResourcePart.cs
- ExpressionSelection.cs
- GeneralTransform3DTo2D.cs
- HwndSubclass.cs
- ScrollBarAutomationPeer.cs
- ScriptingJsonSerializationSection.cs
- EndpointConfigContainer.cs
- XhtmlBasicPageAdapter.cs
- QuaternionAnimationUsingKeyFrames.cs
- SqlClientWrapperSmiStreamChars.cs
- RemoteX509Token.cs
- ToolStripItemTextRenderEventArgs.cs
- UserPreference.cs
- PauseStoryboard.cs
- BrowsableAttribute.cs
- TreeBuilderBamlTranslator.cs
- MetadataStore.cs
- StandardToolWindows.cs
- ReverseInheritProperty.cs
- SerializerProvider.cs
- PostBackTrigger.cs
- QuaternionAnimationUsingKeyFrames.cs
- WindowPattern.cs
- AxParameterData.cs
- COM2PictureConverter.cs
- CfgParser.cs
- WebBaseEventKeyComparer.cs
- Int32Storage.cs
- StrongNameUtility.cs
- XsdDuration.cs
- EdmTypeAttribute.cs
- SpellCheck.cs
- Ray3DHitTestResult.cs
- TaiwanCalendar.cs
- JsonByteArrayDataContract.cs
- StandardToolWindows.cs
- SmiGettersStream.cs
- ExpandCollapsePattern.cs
- ButtonColumn.cs
- HtmlElementCollection.cs
- ContentElement.cs
- TableRow.cs
- XmlDocument.cs
- PathSegment.cs
- LongPath.cs
- AssemblyInfo.cs
- _ConnectionGroup.cs
- ShimAsPublicXamlType.cs
- CookieHandler.cs
- PathNode.cs
- ContainerCodeDomSerializer.cs
- CultureTableRecord.cs
- WindowsListViewScroll.cs
- CircleHotSpot.cs
- XmlUrlResolver.cs
- TableLayoutStyleCollection.cs
- SqlRemoveConstantOrderBy.cs
- DataGridViewToolTip.cs
- SqlDataReader.cs
- TreeViewCancelEvent.cs
- PointKeyFrameCollection.cs
- ExpressionHelper.cs
- DefinitionProperties.cs
- FlowDocumentPaginator.cs