Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataBindingCollection.cs
- SlipBehavior.cs
- StorageMappingFragment.cs
- safex509handles.cs
- PropertyBuilder.cs
- CompositeFontParser.cs
- XmlSchemaSimpleTypeRestriction.cs
- Matrix.cs
- ObjectIDGenerator.cs
- XPathPatternBuilder.cs
- PropertyGridView.cs
- MatrixAnimationBase.cs
- DesignerHost.cs
- TablePattern.cs
- FileLoadException.cs
- FixedPageProcessor.cs
- ConfigXmlComment.cs
- TransportDefaults.cs
- TextTreeObjectNode.cs
- Collection.cs
- InfoCardArgumentException.cs
- Connection.cs
- FormatConvertedBitmap.cs
- ColumnBinding.cs
- UnmanagedBitmapWrapper.cs
- ScrollChrome.cs
- OptionalColumn.cs
- IHttpResponseInternal.cs
- ExternalDataExchangeService.cs
- SchemaMapping.cs
- X509WindowsSecurityToken.cs
- EntityDataSourceConfigureObjectContext.cs
- AssemblyFilter.cs
- Baml2006ReaderContext.cs
- NGCPageContentCollectionSerializerAsync.cs
- AsymmetricKeyExchangeFormatter.cs
- ResolveMatchesApril2005.cs
- ScriptControlManager.cs
- ReaderWriterLockWrapper.cs
- ExpressionBindings.cs
- CodeTypeConstructor.cs
- WebMessageFormatHelper.cs
- DotExpr.cs
- BezierSegment.cs
- Image.cs
- SqlInfoMessageEvent.cs
- ProtocolsConfigurationHandler.cs
- AllMembershipCondition.cs
- FormDocumentDesigner.cs
- ComponentChangingEvent.cs
- Thread.cs
- XmlComplianceUtil.cs
- RowType.cs
- LeafCellTreeNode.cs
- DbCommandDefinition.cs
- WinFormsUtils.cs
- BigInt.cs
- ContainerControl.cs
- DataGridRowEventArgs.cs
- EventMap.cs
- DatagridviewDisplayedBandsData.cs
- CompoundFileReference.cs
- SchemaHelper.cs
- SessionStateContainer.cs
- TokenBasedSet.cs
- MissingFieldException.cs
- ImageDrawing.cs
- ErrorReporting.cs
- IriParsingElement.cs
- MultiBinding.cs
- DataControlLinkButton.cs
- OpacityConverter.cs
- ObjectViewEntityCollectionData.cs
- RegexCapture.cs
- PartialCachingAttribute.cs
- PeerResolverElement.cs
- WindowsProgressbar.cs
- UriTemplateLiteralQueryValue.cs
- PersonalizationProvider.cs
- DelegatingConfigHost.cs
- GridLengthConverter.cs
- ImmutableObjectAttribute.cs
- XmlNodeReader.cs
- JoinElimination.cs
- EdgeProfileValidation.cs
- SerializationObjectManager.cs
- LogLogRecord.cs
- Clipboard.cs
- ChtmlCalendarAdapter.cs
- SoapFault.cs
- DetailsView.cs
- LiteralDesigner.cs
- SharedPersonalizationStateInfo.cs
- PenCursorManager.cs
- TagMapInfo.cs
- GridEntry.cs
- ProgressPage.cs
- InputChannelAcceptor.cs
- ControlLocalizer.cs
- InternalPermissions.cs