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
- HeaderLabel.cs
- CallbackValidator.cs
- OperandQuery.cs
- PostBackOptions.cs
- TrustManagerMoreInformation.cs
- SqlDataSourceStatusEventArgs.cs
- TimelineCollection.cs
- OpenTypeLayoutCache.cs
- RuntimeConfigLKG.cs
- DbParameterHelper.cs
- SparseMemoryStream.cs
- CountAggregationOperator.cs
- ConfigXmlSignificantWhitespace.cs
- LZCodec.cs
- DNS.cs
- BinaryObjectWriter.cs
- DbgCompiler.cs
- AssociationSet.cs
- StateRuntime.cs
- Evaluator.cs
- TriggerBase.cs
- DataRowExtensions.cs
- HelpEvent.cs
- COM2FontConverter.cs
- DoubleCollectionValueSerializer.cs
- VisualCollection.cs
- LoginName.cs
- DataRowView.cs
- ProcessHostFactoryHelper.cs
- Win32Exception.cs
- CustomGrammar.cs
- EnumValAlphaComparer.cs
- Package.cs
- SystemTcpStatistics.cs
- XslCompiledTransform.cs
- BindingSource.cs
- XmlNodeChangedEventArgs.cs
- BaseParagraph.cs
- FormattedTextSymbols.cs
- HtmlInputImage.cs
- PathData.cs
- KnownTypesHelper.cs
- PassportAuthenticationEventArgs.cs
- MatrixUtil.cs
- CheckBoxList.cs
- ModuleConfigurationInfo.cs
- WebPartHelpVerb.cs
- TokenBasedSet.cs
- CompilerGeneratedAttribute.cs
- KeyGestureConverter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- NameValueConfigurationCollection.cs
- RotateTransform3D.cs
- GroupQuery.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- FullTextLine.cs
- LoginView.cs
- DocumentGrid.cs
- TagNameToTypeMapper.cs
- ProfileBuildProvider.cs
- AddInStore.cs
- SeverityFilter.cs
- AbandonedMutexException.cs
- SymbolEqualComparer.cs
- DependencyPropertyAttribute.cs
- GeneralTransform3DGroup.cs
- LabelAutomationPeer.cs
- CodeActivityContext.cs
- CustomCategoryAttribute.cs
- DataGridItemCollection.cs
- ClassDataContract.cs
- FamilyCollection.cs
- SignatureDescription.cs
- WebPartTransformerAttribute.cs
- DetailsView.cs
- TextSelection.cs
- ServiceEndpointCollection.cs
- CapabilitiesState.cs
- WinEventWrap.cs
- ServiceDescriptionData.cs
- ForEachAction.cs
- TextRunCache.cs
- ContentType.cs
- Vector3DConverter.cs
- ColumnWidthChangingEvent.cs
- ListItem.cs
- Pen.cs
- CurrencyManager.cs
- StopStoryboard.cs
- SourceExpressionException.cs
- TrustManager.cs
- ConnectionConsumerAttribute.cs
- BoundField.cs
- UnsafeNativeMethods.cs
- ExpandCollapsePattern.cs
- ProfileParameter.cs
- SoapReflectionImporter.cs
- ProxyWebPartConnectionCollection.cs
- RetriableClipboard.cs
- OleDbConnectionPoolGroupProviderInfo.cs