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
- DataGridViewRowCollection.cs
- CollectionMarkupSerializer.cs
- CodeCastExpression.cs
- ActivityDesignerResources.cs
- sqlinternaltransaction.cs
- XdrBuilder.cs
- ValueTypeFixupInfo.cs
- SafeMemoryMappedFileHandle.cs
- FacetChecker.cs
- ToggleButton.cs
- DependencyPropertyKey.cs
- BuildManager.cs
- DbConnectionPoolGroupProviderInfo.cs
- ClientConfigurationSystem.cs
- CompositeDataBoundControl.cs
- JsonEncodingStreamWrapper.cs
- UrlMappingsSection.cs
- XmlWhitespace.cs
- SmtpReplyReader.cs
- Duration.cs
- DataGridPreparingCellForEditEventArgs.cs
- X509ChainPolicy.cs
- Visual3DCollection.cs
- UInt32Storage.cs
- DtdParser.cs
- ReadOnlyDataSourceView.cs
- AutomationPropertyInfo.cs
- IODescriptionAttribute.cs
- BaseTemplatedMobileComponentEditor.cs
- ContextMarshalException.cs
- PropertyValueEditor.cs
- SettingsPropertyValueCollection.cs
- Interop.cs
- KeyConverter.cs
- CustomSignedXml.cs
- HtmlTextViewAdapter.cs
- TemplateBaseAction.cs
- XamlSerializationHelper.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- formatstringdialog.cs
- ErrorWebPart.cs
- RowUpdatedEventArgs.cs
- DataPagerField.cs
- WindowsStatusBar.cs
- HyperLink.cs
- LabelTarget.cs
- RemotingException.cs
- XamlReader.cs
- WebPartMinimizeVerb.cs
- LogRecordSequence.cs
- XmlCollation.cs
- AttachInfo.cs
- PrintingPermission.cs
- TypeInitializationException.cs
- InfoCardClaimCollection.cs
- IntMinMaxAggregationOperator.cs
- BasePropertyDescriptor.cs
- ValidateNames.cs
- ForwardPositionQuery.cs
- SmtpCommands.cs
- CustomAttributeFormatException.cs
- AspNetHostingPermission.cs
- AuthenticationModulesSection.cs
- DynamicObject.cs
- HiddenField.cs
- DropAnimation.xaml.cs
- WebPartExportVerb.cs
- RtfFormatStack.cs
- RSACryptoServiceProvider.cs
- UnsafeNativeMethods.cs
- ProtocolsConfigurationHandler.cs
- DrawToolTipEventArgs.cs
- CookielessData.cs
- RegexReplacement.cs
- XmlDataLoader.cs
- _NegoState.cs
- HwndSubclass.cs
- Parameter.cs
- LoginUtil.cs
- TextCompositionManager.cs
- DataGridViewAutoSizeModeEventArgs.cs
- Transform3DCollection.cs
- XsltArgumentList.cs
- EntityContainerEmitter.cs
- FrameworkContentElementAutomationPeer.cs
- BufferedStream.cs
- XmlWrappingWriter.cs
- HttpRuntimeSection.cs
- XmlHierarchicalEnumerable.cs
- securitycriticaldataClass.cs
- ContractsBCL.cs
- TableItemStyle.cs
- WebHostUnsafeNativeMethods.cs
- Point4D.cs
- X509ServiceCertificateAuthentication.cs
- ReaderWriterLockWrapper.cs
- BackStopAuthenticationModule.cs
- IteratorFilter.cs
- IdentityValidationException.cs
- ContactManager.cs