Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlVersionHeader.cs
- WebConfigurationFileMap.cs
- PointConverter.cs
- WorkflowInspectionServices.cs
- ElementUtil.cs
- EntityCommand.cs
- _NegotiateClient.cs
- AsyncCompletedEventArgs.cs
- ReferencedAssembly.cs
- SqlRetyper.cs
- WsatServiceCertificate.cs
- COM2Properties.cs
- WebPartDisplayModeCollection.cs
- SignalGate.cs
- CollectionsUtil.cs
- FrameworkContentElementAutomationPeer.cs
- UnsafeNetInfoNativeMethods.cs
- EventManager.cs
- LayoutEditorPart.cs
- BitmapEffectOutputConnector.cs
- unsafeIndexingFilterStream.cs
- SqlInternalConnectionSmi.cs
- HttpFormatExtensions.cs
- ListViewEditEventArgs.cs
- FileDialogCustomPlace.cs
- dataobject.cs
- TimelineGroup.cs
- CodeGen.cs
- IEnumerable.cs
- ReadOnlyDataSource.cs
- RuntimeCompatibilityAttribute.cs
- XmlSchemas.cs
- UniqueIdentifierService.cs
- ByteStorage.cs
- EntityCommandExecutionException.cs
- PagerSettings.cs
- ExpandCollapsePattern.cs
- ProjectionPath.cs
- HyperLink.cs
- Light.cs
- ListViewDeleteEventArgs.cs
- AssemblyGen.cs
- Aggregates.cs
- ViewEventArgs.cs
- ProfileGroupSettingsCollection.cs
- ScrollContentPresenter.cs
- Model3DCollection.cs
- DataGridViewRow.cs
- TabItemAutomationPeer.cs
- TrackingServices.cs
- RecipientInfo.cs
- PasswordDeriveBytes.cs
- StateInitializationDesigner.cs
- MailDefinition.cs
- SafeIUnknown.cs
- CharAnimationBase.cs
- StringTraceRecord.cs
- CodeAttributeArgument.cs
- SEHException.cs
- OutputBuffer.cs
- StaticSiteMapProvider.cs
- CreateUserWizardStep.cs
- CustomBindingElement.cs
- DelayLoadType.cs
- OpenTypeLayout.cs
- Transform3DGroup.cs
- XmlNodeChangedEventArgs.cs
- DiscoveryDocumentReference.cs
- MailMessage.cs
- HttpSocketManager.cs
- CacheSection.cs
- ChannelRequirements.cs
- XmlNamedNodeMap.cs
- FileEnumerator.cs
- SqlNamer.cs
- MeasureData.cs
- Encoder.cs
- ComponentResourceManager.cs
- DoubleUtil.cs
- HttpServerVarsCollection.cs
- WindowsNonControl.cs
- TransactionScopeDesigner.cs
- Light.cs
- ArrayList.cs
- WorkflowPersistenceService.cs
- CatalogPartCollection.cs
- GeneralTransform.cs
- GradientStop.cs
- MetadataUtilsSmi.cs
- SerTrace.cs
- FtpWebRequest.cs
- TypeConverterHelper.cs
- ThrowHelper.cs
- XmlDocument.cs
- TypeGeneratedEventArgs.cs
- XmlCompatibilityReader.cs
- BinaryUtilClasses.cs
- TransformedBitmap.cs
- SystemNetHelpers.cs
- EqualityComparer.cs