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
- dsa.cs
- MimePart.cs
- RichTextBoxContextMenu.cs
- Queue.cs
- ComponentRenameEvent.cs
- MimeWriter.cs
- ClientProxyGenerator.cs
- NativeWindow.cs
- OutputWindow.cs
- EnumerableRowCollection.cs
- SimpleApplicationHost.cs
- ClosableStream.cs
- TransactionTable.cs
- ListViewSelectEventArgs.cs
- HttpClientChannel.cs
- Deflater.cs
- ConnectionStringSettingsCollection.cs
- HttpDateParse.cs
- XPathConvert.cs
- NamespaceQuery.cs
- CommandEventArgs.cs
- KeyValuePairs.cs
- LocalizableAttribute.cs
- ADMembershipProvider.cs
- OleDbWrapper.cs
- DataGridViewCellLinkedList.cs
- DbDataRecord.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- EventDescriptor.cs
- PolicyLevel.cs
- CompiledRegexRunner.cs
- SHA256.cs
- CurrentChangingEventManager.cs
- _HeaderInfo.cs
- HandlerBase.cs
- TimersDescriptionAttribute.cs
- CodeStatementCollection.cs
- ConfigurationElementCollection.cs
- UnsafeNativeMethods.cs
- RayHitTestParameters.cs
- CheckBox.cs
- ImagingCache.cs
- GuidelineCollection.cs
- NameValuePermission.cs
- SystemEvents.cs
- ProcessRequestArgs.cs
- PropertyItemInternal.cs
- SqlCaseSimplifier.cs
- XmlSerializerSection.cs
- AuthenticatingEventArgs.cs
- PlatformNotSupportedException.cs
- MD5Cng.cs
- APCustomTypeDescriptor.cs
- EntityDataSourceColumn.cs
- ResumeStoryboard.cs
- ThreadExceptionDialog.cs
- ConnectionPool.cs
- Misc.cs
- XmlAnyElementAttributes.cs
- ErrorWebPart.cs
- ColumnBinding.cs
- HttpCachePolicy.cs
- PackagePartCollection.cs
- DataGridViewRow.cs
- PageBuildProvider.cs
- NativeObjectSecurity.cs
- CodeGeneratorOptions.cs
- HttpModuleActionCollection.cs
- SignatureToken.cs
- ParameterReplacerVisitor.cs
- ZipIOExtraFieldPaddingElement.cs
- UntypedNullExpression.cs
- XmlSerializableReader.cs
- ConstraintConverter.cs
- AttachmentCollection.cs
- OutputCacheSettings.cs
- DateTimeConverter.cs
- ObjectDataSourceStatusEventArgs.cs
- LogicalExpressionEditor.cs
- FontDriver.cs
- SoundPlayerAction.cs
- EventLogEntryCollection.cs
- PanelStyle.cs
- TreeNodeBinding.cs
- UserControlAutomationPeer.cs
- HttpWrapper.cs
- TransactionException.cs
- SafeNativeMethodsMilCoreApi.cs
- DiscoveryDocumentLinksPattern.cs
- FieldDescriptor.cs
- AdapterUtil.cs
- StreamGeometryContext.cs
- HashMembershipCondition.cs
- SourceSwitch.cs
- RawContentTypeMapper.cs
- PropertyContainer.cs
- DocumentSequence.cs
- EdmPropertyAttribute.cs
- DataGridViewEditingControlShowingEventArgs.cs
- HtmlEmptyTagControlBuilder.cs