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
- PagesSection.cs
- XmlUrlResolver.cs
- BuildProviderAppliesToAttribute.cs
- CommandTreeTypeHelper.cs
- Connector.cs
- XpsPackagingPolicy.cs
- PeerPresenceInfo.cs
- WindowsButton.cs
- HttpServerUtilityWrapper.cs
- BaseConfigurationRecord.cs
- PrivateFontCollection.cs
- HttpEncoderUtility.cs
- _NetRes.cs
- MexNamedPipeBindingElement.cs
- QueryContinueDragEvent.cs
- AssemblyNameProxy.cs
- OSFeature.cs
- ManipulationDevice.cs
- EntityStoreSchemaGenerator.cs
- MarshalDirectiveException.cs
- Predicate.cs
- DataGridViewAccessibleObject.cs
- AudioBase.cs
- HashMembershipCondition.cs
- tibetanshape.cs
- MdImport.cs
- ObjectDataSourceChooseMethodsPanel.cs
- DelegateHelpers.Generated.cs
- UnsafeNativeMethods.cs
- ServiceDebugBehavior.cs
- DataSysAttribute.cs
- SectionXmlInfo.cs
- RestHandlerFactory.cs
- WeakRefEnumerator.cs
- Repeater.cs
- SplitterPanelDesigner.cs
- Tracer.cs
- Bidi.cs
- ListViewContainer.cs
- FixedTextBuilder.cs
- EventLogPermissionEntryCollection.cs
- GC.cs
- PersonalizationAdministration.cs
- Odbc32.cs
- SchemaLookupTable.cs
- localization.cs
- PanelStyle.cs
- SqlSelectStatement.cs
- XmlCollation.cs
- MsmqIntegrationSecurityElement.cs
- WmlControlAdapter.cs
- DateTimeConverter.cs
- ApplicationHost.cs
- EditorZone.cs
- configsystem.cs
- _ConnectOverlappedAsyncResult.cs
- RichTextBoxConstants.cs
- Brush.cs
- GAC.cs
- RestHandlerFactory.cs
- IndexedWhereQueryOperator.cs
- FileRecordSequenceCompletedAsyncResult.cs
- FileDialog_Vista.cs
- InkCanvasInnerCanvas.cs
- mactripleDES.cs
- HtmlTable.cs
- PlatformCulture.cs
- AssemblyEvidenceFactory.cs
- XmlDataImplementation.cs
- Camera.cs
- SqlRecordBuffer.cs
- DynamicUpdateCommand.cs
- BookmarkCallbackWrapper.cs
- WindowsGraphicsCacheManager.cs
- MemberDomainMap.cs
- bidPrivateBase.cs
- TypeToken.cs
- ComplexLine.cs
- TypeToken.cs
- EdmFunction.cs
- TypeInfo.cs
- DrawingVisual.cs
- RelationshipNavigation.cs
- StrongNameMembershipCondition.cs
- Pair.cs
- ConfigurationValues.cs
- InputBuffer.cs
- HttpResponseBase.cs
- PreviewPrintController.cs
- DataSourceExpression.cs
- SmtpNegotiateAuthenticationModule.cs
- Registry.cs
- StaticFileHandler.cs
- OperationCanceledException.cs
- ArglessEventHandlerProxy.cs
- ScriptComponentDescriptor.cs
- SQLGuidStorage.cs
- BigInt.cs
- XhtmlBasicImageAdapter.cs
- ChangesetResponse.cs