Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PopupRootAutomationPeer.cs
- AcceleratedTokenProviderState.cs
- ProtectedProviderSettings.cs
- SqlRowUpdatedEvent.cs
- GridViewCellAutomationPeer.cs
- DataListItem.cs
- ObjectDataSourceStatusEventArgs.cs
- WebZone.cs
- HostedAspNetEnvironment.cs
- PeerNameResolver.cs
- CatalogPartCollection.cs
- SchemaSetCompiler.cs
- Slider.cs
- XhtmlBasicTextViewAdapter.cs
- XmlRootAttribute.cs
- TreeViewHitTestInfo.cs
- UpdatePanelTriggerCollection.cs
- SchemaDeclBase.cs
- Vector3DAnimationUsingKeyFrames.cs
- ServiceDiscoveryElement.cs
- HostedHttpContext.cs
- ToolboxCategoryItems.cs
- HiddenField.cs
- DeclaredTypeValidator.cs
- _BasicClient.cs
- CookieHandler.cs
- EventMappingSettingsCollection.cs
- SqlNotificationRequest.cs
- CharacterMetrics.cs
- SafePointer.cs
- odbcmetadatacolumnnames.cs
- ConnectionModeReader.cs
- ExpressionBuilder.cs
- InputProcessorProfilesLoader.cs
- EmptyControlCollection.cs
- VisualStyleElement.cs
- Parser.cs
- GroupItem.cs
- SettingsBindableAttribute.cs
- ListBindingConverter.cs
- TreeWalker.cs
- PeerSecurityHelpers.cs
- XmlLinkedNode.cs
- PropertyConverter.cs
- _BufferOffsetSize.cs
- Int16AnimationUsingKeyFrames.cs
- GenericWebPart.cs
- ServiceObjectContainer.cs
- TaskExtensions.cs
- Function.cs
- SettingsPropertyIsReadOnlyException.cs
- XmlRawWriterWrapper.cs
- EncodingStreamWrapper.cs
- ColorAnimationUsingKeyFrames.cs
- AnnotationHighlightLayer.cs
- MetabaseServerConfig.cs
- WorkflowServiceAttributesTypeConverter.cs
- QualificationDataAttribute.cs
- ToolStripContentPanel.cs
- ContractDescription.cs
- DuplicateWaitObjectException.cs
- ResXResourceSet.cs
- ExitEventArgs.cs
- PropertyPath.cs
- AppDomainFactory.cs
- PreservationFileWriter.cs
- SoapHeaderException.cs
- MessageAction.cs
- WebRequestModuleElement.cs
- AccessibilityApplicationManager.cs
- VariableValue.cs
- TableRowCollection.cs
- Typeface.cs
- ColorAnimation.cs
- HttpContext.cs
- WS2007FederationHttpBinding.cs
- DocumentViewerBase.cs
- CorePropertiesFilter.cs
- HostedNamedPipeTransportManager.cs
- TreeNodeStyle.cs
- DrawingState.cs
- MetabaseServerConfig.cs
- AnonymousIdentificationSection.cs
- DataGridViewRowPostPaintEventArgs.cs
- WebBrowserBase.cs
- VirtualPathUtility.cs
- CommonDialog.cs
- TextInfo.cs
- TagMapCollection.cs
- VisualProxy.cs
- SecurityUtils.cs
- XmlSerializationWriter.cs
- ComplexTypeEmitter.cs
- ZoneButton.cs
- ResourceIDHelper.cs
- XmlUtilWriter.cs
- QueryExpr.cs
- PenContexts.cs
- ReferenceService.cs
- Int64Animation.cs