Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ActivationServices.cs
- HtmlInputRadioButton.cs
- RoutedCommand.cs
- BamlLocalizableResource.cs
- IPGlobalProperties.cs
- XPathExpr.cs
- MsmqHostedTransportManager.cs
- StreamGeometry.cs
- TemplateComponentConnector.cs
- TypeContext.cs
- EnumValidator.cs
- CurrentChangingEventManager.cs
- UriExt.cs
- Baml2006KnownTypes.cs
- DataGridViewCellValidatingEventArgs.cs
- StylusShape.cs
- SQLDouble.cs
- CodeArgumentReferenceExpression.cs
- WindowShowOrOpenTracker.cs
- TemplatePropertyEntry.cs
- HttpRawResponse.cs
- Int32CollectionConverter.cs
- DataGridViewBindingCompleteEventArgs.cs
- FontUnit.cs
- Debugger.cs
- AuthenticationModuleElementCollection.cs
- Configuration.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- DBCSCodePageEncoding.cs
- ManagedFilter.cs
- SerialStream.cs
- TreeViewEvent.cs
- TokenBasedSetEnumerator.cs
- DbSourceParameterCollection.cs
- DataGridViewCellPaintingEventArgs.cs
- NumberSubstitution.cs
- SplineKeyFrames.cs
- ProviderIncompatibleException.cs
- BamlBinaryWriter.cs
- ControlCollection.cs
- XmlValueConverter.cs
- TraceSwitch.cs
- SlotInfo.cs
- EndpointBehaviorElementCollection.cs
- _ChunkParse.cs
- FixedSchema.cs
- OracleInternalConnection.cs
- SpAudioStreamWrapper.cs
- DbModificationClause.cs
- StringCollection.cs
- basecomparevalidator.cs
- InkPresenterAutomationPeer.cs
- BordersPage.cs
- SmtpFailedRecipientsException.cs
- XmlWellformedWriter.cs
- TypeDescriptor.cs
- URLAttribute.cs
- AttributeEmitter.cs
- SelectionProviderWrapper.cs
- PackageDigitalSignatureManager.cs
- XamlToRtfParser.cs
- ColumnMapCopier.cs
- DefaultBinder.cs
- GetPageCompletedEventArgs.cs
- RectangleConverter.cs
- HttpCookie.cs
- BaseResourcesBuildProvider.cs
- AmbientLight.cs
- StringComparer.cs
- HashRepartitionEnumerator.cs
- ListenerConnectionModeReader.cs
- FileChangesMonitor.cs
- Int32.cs
- ContentDisposition.cs
- XmlIlVisitor.cs
- TextAdaptor.cs
- SymbolDocumentGenerator.cs
- TraceEventCache.cs
- TemplateControlBuildProvider.cs
- RawTextInputReport.cs
- C14NUtil.cs
- CompoundFileStreamReference.cs
- PingOptions.cs
- MarkedHighlightComponent.cs
- LayoutUtils.cs
- CommonProperties.cs
- UIElementParagraph.cs
- XmlNullResolver.cs
- NoClickablePointException.cs
- AcceleratedTokenProvider.cs
- MulticastNotSupportedException.cs
- EndpointDiscoveryMetadataCD1.cs
- PropertyMetadata.cs
- FilterQuery.cs
- SkinBuilder.cs
- CryptoKeySecurity.cs
- SynchronizationFilter.cs
- DetailsViewInsertedEventArgs.cs
- TagNameToTypeMapper.cs
- VideoDrawing.cs