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
- EventEntry.cs
- XPathDocument.cs
- C14NUtil.cs
- arc.cs
- UnsafeNativeMethodsPenimc.cs
- loginstatus.cs
- XmlSerializerNamespaces.cs
- DbDataSourceEnumerator.cs
- RegexStringValidator.cs
- IODescriptionAttribute.cs
- BaseCollection.cs
- Function.cs
- IgnoreFileBuildProvider.cs
- PieceDirectory.cs
- DockPattern.cs
- Button.cs
- StyleBamlTreeBuilder.cs
- SqlCacheDependencySection.cs
- Emitter.cs
- ServiceReference.cs
- SafeFileMappingHandle.cs
- invalidudtexception.cs
- RedistVersionInfo.cs
- UserInitiatedNavigationPermission.cs
- HyperLinkStyle.cs
- TagMapInfo.cs
- ReflectionUtil.cs
- CompositeScriptReference.cs
- ChangeTracker.cs
- SocketInformation.cs
- SqlUserDefinedTypeAttribute.cs
- AssemblyInfo.cs
- FrugalMap.cs
- XmlSchemaSequence.cs
- HierarchicalDataSourceIDConverter.cs
- Parsers.cs
- DefaultBinder.cs
- DataSourceCacheDurationConverter.cs
- SchemaAttDef.cs
- Mapping.cs
- SqlFunctions.cs
- ConfigurationProperty.cs
- FixedSOMPageConstructor.cs
- AnonymousIdentificationSection.cs
- ObjectToken.cs
- TargetInvocationException.cs
- elementinformation.cs
- ChangeTracker.cs
- EventHandlerList.cs
- RemoteX509Token.cs
- XmlHierarchicalEnumerable.cs
- DecoderExceptionFallback.cs
- figurelengthconverter.cs
- ContentValidator.cs
- RequiredAttributeAttribute.cs
- PointCollection.cs
- ScaleTransform.cs
- SupportingTokenAuthenticatorSpecification.cs
- TextFormatterContext.cs
- DataGridCell.cs
- ServicePointManagerElement.cs
- EditCommandColumn.cs
- ConfigurationStrings.cs
- WebPartDescription.cs
- Int16Storage.cs
- ParameterDataSourceExpression.cs
- BindingList.cs
- ToolStripGrip.cs
- SimpleParser.cs
- MatchNoneMessageFilter.cs
- QilXmlWriter.cs
- DbCommandTree.cs
- TextBoxRenderer.cs
- SecondaryIndexList.cs
- HostingEnvironmentWrapper.cs
- GridView.cs
- CompilerWrapper.cs
- LambdaCompiler.cs
- linebase.cs
- XhtmlConformanceSection.cs
- VirtualDirectoryMapping.cs
- WriteableBitmap.cs
- Marshal.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- MessageQueuePermissionEntry.cs
- BrowserCapabilitiesCompiler.cs
- ToolStripPanelRenderEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- GenericWebPart.cs
- SplitterCancelEvent.cs
- DbConnectionPool.cs
- HttpPostedFile.cs
- WebBodyFormatMessageProperty.cs
- CodeIdentifiers.cs
- VisualStateManager.cs
- Formatter.cs
- ToolboxItemAttribute.cs
- Util.cs
- TreeNodeCollection.cs
- TextOutput.cs