Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WCFModelStrings.Designer.cs
- Freezable.cs
- HttpPostedFile.cs
- ExtendedTransformFactory.cs
- GroupBoxRenderer.cs
- ResXResourceSet.cs
- ToolStripItem.cs
- AutoResizedEvent.cs
- BamlMapTable.cs
- SpellerError.cs
- FirstMatchCodeGroup.cs
- GenericParameterDataContract.cs
- BindingContext.cs
- FactoryGenerator.cs
- CultureInfoConverter.cs
- WebScriptMetadataMessage.cs
- Literal.cs
- EncodingDataItem.cs
- OpenTypeLayoutCache.cs
- RowBinding.cs
- ScriptingScriptResourceHandlerSection.cs
- ParameterCollectionEditorForm.cs
- _HelperAsyncResults.cs
- SQLMembershipProvider.cs
- MetafileHeader.cs
- SystemTcpStatistics.cs
- HttpCacheParams.cs
- LineVisual.cs
- HttpVersion.cs
- TextDecorationCollectionConverter.cs
- ByteStack.cs
- XslCompiledTransform.cs
- formatter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Graphics.cs
- FontFamily.cs
- ScalarRestriction.cs
- SeekableMessageNavigator.cs
- PostBackTrigger.cs
- List.cs
- Point3DAnimationBase.cs
- Choices.cs
- SimpleApplicationHost.cs
- StrokeNode.cs
- XmlNodeChangedEventManager.cs
- HtmlToClrEventProxy.cs
- ThreadAttributes.cs
- DataServiceResponse.cs
- SubordinateTransaction.cs
- PropertyChangedEventArgs.cs
- NativeMethods.cs
- ToolBarDesigner.cs
- ItemsPresenter.cs
- DependencyPropertyAttribute.cs
- SignatureGenerator.cs
- XPathScanner.cs
- DeclaredTypeValidator.cs
- WebPartMenu.cs
- Helpers.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MenuItem.cs
- EncoderParameter.cs
- SafeNativeMemoryHandle.cs
- RegexStringValidatorAttribute.cs
- CodeParameterDeclarationExpression.cs
- BoundConstants.cs
- ResourceBinder.cs
- SortDescriptionCollection.cs
- TempFiles.cs
- XmlSchemaObjectTable.cs
- MobileControlBuilder.cs
- QueryOpcode.cs
- ClientBuildManagerCallback.cs
- SqlDataReaderSmi.cs
- WebPartMovingEventArgs.cs
- RegistryPermission.cs
- CatalogPartCollection.cs
- StringAttributeCollection.cs
- NavigationWindow.cs
- LineUtil.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- BitmapInitialize.cs
- BindingExpression.cs
- BinaryMessageEncodingBindingElement.cs
- EventLogPermissionHolder.cs
- RadioButtonAutomationPeer.cs
- UInt16.cs
- SoapAttributes.cs
- LogSwitch.cs
- ConnectionManagementElement.cs
- embossbitmapeffect.cs
- EntityType.cs
- columnmapkeybuilder.cs
- SharedPersonalizationStateInfo.cs
- DbConnectionFactory.cs
- XPathParser.cs
- ImageDrawing.cs
- Baml2006Reader.cs
- TraceInternal.cs
- MethodCallConverter.cs