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
- ImageCollectionEditor.cs
- DataServiceRequest.cs
- CodeVariableDeclarationStatement.cs
- WindowsListViewGroupSubsetLink.cs
- DataGridTextBox.cs
- ControlParameter.cs
- AssemblyNameProxy.cs
- Activator.cs
- WebUtil.cs
- LabelInfo.cs
- RequestCacheValidator.cs
- ObjectConverter.cs
- FixedSOMPageConstructor.cs
- WindowsAuthenticationEventArgs.cs
- AuthenticationSection.cs
- DbProviderFactories.cs
- CellIdBoolean.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- ToolStripSeparatorRenderEventArgs.cs
- Hex.cs
- SourceFileBuildProvider.cs
- SignatureHelper.cs
- ContainerVisual.cs
- StaticResourceExtension.cs
- StandardToolWindows.cs
- BamlMapTable.cs
- ResourceExpressionBuilder.cs
- _ProxyRegBlob.cs
- PolicyException.cs
- CodeMethodInvokeExpression.cs
- UIElementHelper.cs
- DataGridToolTip.cs
- ByteStreamGeometryContext.cs
- SafeArrayTypeMismatchException.cs
- NavigationProgressEventArgs.cs
- BinaryNode.cs
- SchemaEntity.cs
- PriorityBinding.cs
- ReadOnlyCollection.cs
- WebPartMinimizeVerb.cs
- SchemaImporterExtensionElement.cs
- EntityStoreSchemaFilterEntry.cs
- XamlWriterExtensions.cs
- TransportChannelListener.cs
- List.cs
- SHA384Cng.cs
- ImmutableAssemblyCacheEntry.cs
- WebScriptMetadataMessageEncoderFactory.cs
- SQLDateTime.cs
- MouseGestureValueSerializer.cs
- FrameworkContentElementAutomationPeer.cs
- StylusLogic.cs
- CollectionView.cs
- StreamedFramingRequestChannel.cs
- RuntimeCompatibilityAttribute.cs
- CodeIdentifier.cs
- precedingquery.cs
- X509ScopedServiceCertificateElementCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- ExpressionEditorAttribute.cs
- CryptoHandle.cs
- _ProxyChain.cs
- RemotingException.cs
- SecurityException.cs
- ZoomPercentageConverter.cs
- LOSFormatter.cs
- ManagedWndProcTracker.cs
- Size.cs
- MenuItem.cs
- QilXmlReader.cs
- XhtmlConformanceSection.cs
- DbMetaDataColumnNames.cs
- Translator.cs
- Math.cs
- WebControlParameterProxy.cs
- SymbolEqualComparer.cs
- QuaternionAnimationUsingKeyFrames.cs
- ValidatingPropertiesEventArgs.cs
- WebPartMenuStyle.cs
- ChtmlTextWriter.cs
- UnhandledExceptionEventArgs.cs
- BaseTemplateBuildProvider.cs
- GridProviderWrapper.cs
- VectorCollectionConverter.cs
- ClientType.cs
- ConnectionConsumerAttribute.cs
- _ListenerAsyncResult.cs
- ReferencedAssembly.cs
- HttpStreamMessage.cs
- PropertyEmitterBase.cs
- WebBrowserSiteBase.cs
- AutoSizeToolBoxItem.cs
- CheckBox.cs
- RefreshPropertiesAttribute.cs
- SessionState.cs
- ResourceDescriptionAttribute.cs
- MailSettingsSection.cs
- QueryConverter.cs
- Point.cs
- SHA384.cs