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
- WindowsStatic.cs
- Stylesheet.cs
- DataServiceQueryProvider.cs
- SequentialWorkflowRootDesigner.cs
- SByteStorage.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Decorator.cs
- QueryOutputWriter.cs
- WebPartVerbCollection.cs
- DocumentsTrace.cs
- MouseButtonEventArgs.cs
- NullRuntimeConfig.cs
- XhtmlConformanceSection.cs
- WCFModelStrings.Designer.cs
- DbCommandDefinition.cs
- DefaultPrintController.cs
- ValueExpressions.cs
- SamlDelegatingWriter.cs
- WindowsIPAddress.cs
- WorkflowInstanceProvider.cs
- BufferAllocator.cs
- SmiEventSink_DeferedProcessing.cs
- HostedController.cs
- StrongName.cs
- SQLGuid.cs
- StoreAnnotationsMap.cs
- MemoryMappedFile.cs
- SystemIPv4InterfaceProperties.cs
- MessageQueuePermissionAttribute.cs
- XmlLinkedNode.cs
- QilBinary.cs
- FileSystemEnumerable.cs
- ConfigurationLocationCollection.cs
- IdnMapping.cs
- PasswordDeriveBytes.cs
- PaperSize.cs
- ToolStripItemTextRenderEventArgs.cs
- RightsManagementInformation.cs
- SafeNativeMethods.cs
- PeerService.cs
- SqlTopReducer.cs
- LogSwitch.cs
- Expressions.cs
- ItemCheckEvent.cs
- ResourceExpression.cs
- XmlEntity.cs
- FieldToken.cs
- Double.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ForeignKeyConstraint.cs
- FixUp.cs
- ResizeGrip.cs
- PopOutPanel.cs
- DataViewManager.cs
- IApplicationTrustManager.cs
- SymDocumentType.cs
- TextViewSelectionProcessor.cs
- XmlCountingReader.cs
- EntityDataSourceChangingEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- QuaternionValueSerializer.cs
- ExeConfigurationFileMap.cs
- DrawListViewColumnHeaderEventArgs.cs
- propertyentry.cs
- SQLBytes.cs
- BypassElement.cs
- NavigationProperty.cs
- DesigntimeLicenseContextSerializer.cs
- AutomationFocusChangedEventArgs.cs
- WindowInteractionStateTracker.cs
- DataSourceCacheDurationConverter.cs
- XmlSchemaDatatype.cs
- SchemaElementDecl.cs
- TagMapInfo.cs
- Emitter.cs
- ConnectorDragDropGlyph.cs
- XmlAtomicValue.cs
- Baml2006Reader.cs
- InputBindingCollection.cs
- XmlSchemaDatatype.cs
- GlobalProxySelection.cs
- CodeExpressionStatement.cs
- SerialPort.cs
- ArgumentElement.cs
- BindingGroup.cs
- AttributeData.cs
- DataControlFieldTypeEditor.cs
- ICspAsymmetricAlgorithm.cs
- DataGridRowClipboardEventArgs.cs
- ArraySubsetEnumerator.cs
- TaskHelper.cs
- RemoteWebConfigurationHost.cs
- UIAgentAsyncParams.cs
- XComponentModel.cs
- ColorConvertedBitmap.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- MergablePropertyAttribute.cs
- CacheAxisQuery.cs
- MouseGestureValueSerializer.cs
- XmlChoiceIdentifierAttribute.cs