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
- UnsignedPublishLicense.cs
- PathGeometry.cs
- EdmToObjectNamespaceMap.cs
- ComboBox.cs
- ErrorFormatterPage.cs
- SigningDialog.cs
- InputScopeManager.cs
- ChannelServices.cs
- SByte.cs
- RenderOptions.cs
- SetStoryboardSpeedRatio.cs
- Oid.cs
- AutoGeneratedField.cs
- SoapSchemaImporter.cs
- ConnectionString.cs
- Completion.cs
- Quaternion.cs
- LocalFileSettingsProvider.cs
- TraceListeners.cs
- ConnectionPoolManager.cs
- BufferModeSettings.cs
- Rectangle.cs
- TableDetailsRow.cs
- AnnotationAuthorChangedEventArgs.cs
- CurrentTimeZone.cs
- SmiRequestExecutor.cs
- BidOverLoads.cs
- GcHandle.cs
- SessionStateModule.cs
- SimpleLine.cs
- RsaSecurityToken.cs
- CriticalFinalizerObject.cs
- DbParameterCollectionHelper.cs
- DataTableNewRowEvent.cs
- AssociatedControlConverter.cs
- ServiceDescriptionData.cs
- WhitespaceSignificantCollectionAttribute.cs
- X509UI.cs
- Process.cs
- PerformanceCounterPermission.cs
- SystemException.cs
- ClientConvert.cs
- FullTextBreakpoint.cs
- AssociationSetMetadata.cs
- TrustManager.cs
- OpCellTreeNode.cs
- MonitorWrapper.cs
- Predicate.cs
- CodeAccessPermission.cs
- CompModSwitches.cs
- LogLogRecordHeader.cs
- GeometryModel3D.cs
- ExpressionQuoter.cs
- XmlQuerySequence.cs
- CodeCatchClauseCollection.cs
- ComplexBindingPropertiesAttribute.cs
- XmlSerializerSection.cs
- SecurityPolicyVersion.cs
- InputLanguage.cs
- LineVisual.cs
- DataFieldConverter.cs
- DESCryptoServiceProvider.cs
- SystemBrushes.cs
- KeyNameIdentifierClause.cs
- EllipseGeometry.cs
- XmlQueryStaticData.cs
- SqlParameter.cs
- Unit.cs
- ProfileProvider.cs
- Encoder.cs
- ObjectQuery_EntitySqlExtensions.cs
- PathSegment.cs
- ThemeableAttribute.cs
- CompileLiteralTextParser.cs
- RayHitTestParameters.cs
- RadioButtonRenderer.cs
- BezierSegment.cs
- HashCodeCombiner.cs
- BezierSegment.cs
- WinInetCache.cs
- InputLangChangeEvent.cs
- ListenerElementsCollection.cs
- NavigationPropertyEmitter.cs
- Roles.cs
- UnknownBitmapEncoder.cs
- RowTypePropertyElement.cs
- CurrentChangingEventManager.cs
- VScrollBar.cs
- WindowsMenu.cs
- StreamHelper.cs
- DesignerAttribute.cs
- ThemeInfoAttribute.cs
- Stylesheet.cs
- TableLayoutSettingsTypeConverter.cs
- PropertyEmitterBase.cs
- Matrix3DStack.cs
- ParamArrayAttribute.cs
- ValidatingPropertiesEventArgs.cs
- DataGridViewHeaderCell.cs
- Pair.cs