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
- SqlDataSourceCommandEventArgs.cs
- diagnosticsswitches.cs
- OdbcInfoMessageEvent.cs
- IncrementalHitTester.cs
- ValidationRule.cs
- TextProperties.cs
- Region.cs
- ProjectionPath.cs
- Roles.cs
- DataGridViewRowStateChangedEventArgs.cs
- SafeCryptoHandles.cs
- TargetParameterCountException.cs
- ScriptManager.cs
- WebPartConnectionsConfigureVerb.cs
- HttpModuleActionCollection.cs
- SoapIncludeAttribute.cs
- WindowsFormsSynchronizationContext.cs
- Module.cs
- ExpressionReplacer.cs
- RadioButtonRenderer.cs
- CroppedBitmap.cs
- XmlSchemaGroup.cs
- PathSegmentCollection.cs
- IndicShape.cs
- PageParserFilter.cs
- Pts.cs
- ExcludePathInfo.cs
- FlowNode.cs
- EntityDataSourceReferenceGroup.cs
- ToolStripGripRenderEventArgs.cs
- XmlNodeList.cs
- EditorZone.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XmlHelper.cs
- InputScope.cs
- WindowInteractionStateTracker.cs
- WebPartTransformerCollection.cs
- BindingObserver.cs
- MemberJoinTreeNode.cs
- FtpWebRequest.cs
- SessionStateModule.cs
- DispatcherExceptionFilterEventArgs.cs
- OutKeywords.cs
- HttpRequestTraceRecord.cs
- ToolStripProgressBar.cs
- CacheRequest.cs
- WorkflowInstanceContextProvider.cs
- Switch.cs
- ListViewItemSelectionChangedEvent.cs
- HttpApplicationFactory.cs
- BitmapEffectDrawingContent.cs
- Adorner.cs
- RC2CryptoServiceProvider.cs
- DLinqDataModelProvider.cs
- WindowsListView.cs
- TextElement.cs
- KeyBinding.cs
- ProcessHostFactoryHelper.cs
- SmtpFailedRecipientException.cs
- UpDownBase.cs
- MasterPageParser.cs
- MatrixTransform.cs
- AvTrace.cs
- ColorContextHelper.cs
- ParagraphResult.cs
- XdrBuilder.cs
- PerformanceCounter.cs
- ResourceDisplayNameAttribute.cs
- TypeSystem.cs
- __Error.cs
- ProcessHostFactoryHelper.cs
- CorrelationHandle.cs
- SafeFindHandle.cs
- dbdatarecord.cs
- SqlTopReducer.cs
- XmlValidatingReaderImpl.cs
- x509store.cs
- EntityDataSourceWrapper.cs
- BamlReader.cs
- HostingEnvironmentException.cs
- Utils.cs
- JsonClassDataContract.cs
- MultiPageTextView.cs
- TextEditorTables.cs
- KnownColorTable.cs
- HashAlgorithm.cs
- Parser.cs
- ScriptMethodAttribute.cs
- LabelLiteral.cs
- XamlStream.cs
- InheritanceContextChangedEventManager.cs
- SystemIcmpV6Statistics.cs
- SpellerInterop.cs
- cache.cs
- TimelineClockCollection.cs
- Internal.cs
- EdmToObjectNamespaceMap.cs
- QuaternionRotation3D.cs
- MatrixAnimationUsingPath.cs
- WeakEventTable.cs