Code:
/ DotNET / DotNET / 8.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
- FacetEnabledSchemaElement.cs
- ConfigurationValue.cs
- DesignTimeTemplateParser.cs
- OleDbPermission.cs
- TagNameToTypeMapper.cs
- PathTooLongException.cs
- ValueUnavailableException.cs
- XmlSchemaAny.cs
- TypefaceMap.cs
- TextPenaltyModule.cs
- TextAutomationPeer.cs
- IPipelineRuntime.cs
- MappingItemCollection.cs
- precedingquery.cs
- NavigateUrlConverter.cs
- BindingManagerDataErrorEventArgs.cs
- WindowsFormsHelpers.cs
- BatchServiceHost.cs
- BamlWriter.cs
- SqlInternalConnectionSmi.cs
- FileChangeNotifier.cs
- FolderNameEditor.cs
- PathFigureCollectionConverter.cs
- TableCellAutomationPeer.cs
- Missing.cs
- CategoryGridEntry.cs
- ZipIOFileItemStream.cs
- ChannelManagerHelpers.cs
- OleDbConnection.cs
- QueryAccessibilityHelpEvent.cs
- XpsS0ValidatingLoader.cs
- DataGridViewElement.cs
- FormViewDeletedEventArgs.cs
- MarkupCompilePass1.cs
- CompilerWrapper.cs
- HostingEnvironmentException.cs
- ToolStripSettings.cs
- SystemIPAddressInformation.cs
- SchemaEntity.cs
- ToolStripRendererSwitcher.cs
- SystemNetHelpers.cs
- NotifyIcon.cs
- ObjectQuery_EntitySqlExtensions.cs
- CollectionAdapters.cs
- SamlSerializer.cs
- EnumValAlphaComparer.cs
- MinimizableAttributeTypeConverter.cs
- X509CertificateCollection.cs
- DataGridViewTopRowAccessibleObject.cs
- SqlNodeAnnotations.cs
- TimeSpanMinutesConverter.cs
- XmlObjectSerializerReadContext.cs
- ApplicationCommands.cs
- GPStream.cs
- MenuItemStyleCollection.cs
- WorkflowIdleElement.cs
- GestureRecognitionResult.cs
- Bits.cs
- TypeConverter.cs
- ServerIdentity.cs
- Dispatcher.cs
- FocusChangedEventArgs.cs
- SafeRightsManagementSessionHandle.cs
- Repeater.cs
- ToolStripPanelCell.cs
- TreeNodeStyleCollection.cs
- CustomValidator.cs
- filewebrequest.cs
- SmtpClient.cs
- ColorConvertedBitmap.cs
- RectConverter.cs
- ObjectPropertyMapping.cs
- DialogWindow.cs
- AssemblyBuilder.cs
- MobileComponentEditorPage.cs
- DataGridViewCellCollection.cs
- HotSpotCollectionEditor.cs
- DataMemberConverter.cs
- TraceHandler.cs
- SQLDecimal.cs
- ForwardPositionQuery.cs
- RuleRefElement.cs
- XmlSequenceWriter.cs
- CacheChildrenQuery.cs
- PeerTransportSecurityElement.cs
- DesignTimeParseData.cs
- XamlToRtfParser.cs
- filewebrequest.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlSchemaAttributeGroupRef.cs
- AccessText.cs
- TextChangedEventArgs.cs
- ColorTransformHelper.cs
- PointLightBase.cs
- TableItemPattern.cs
- ChtmlTextWriter.cs
- ListInitExpression.cs
- ResourceDescriptionAttribute.cs
- RoleBoolean.cs
- RetriableClipboard.cs