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
- StrokeNode.cs
- ResourceExpressionBuilder.cs
- SortExpressionBuilder.cs
- AssemblySettingAttributes.cs
- MonitorWrapper.cs
- SQLInt16.cs
- PermissionAttributes.cs
- CheckBoxList.cs
- QueryAccessibilityHelpEvent.cs
- ChannelProtectionRequirements.cs
- SerializeAbsoluteContext.cs
- QueryContinueDragEventArgs.cs
- FormParameter.cs
- RoutingChannelExtension.cs
- ColumnMapCopier.cs
- DataGridViewCellValueEventArgs.cs
- TableDetailsCollection.cs
- FamilyTypeface.cs
- SiteMap.cs
- ChannelAcceptor.cs
- CFStream.cs
- SQLCharsStorage.cs
- ResourceDescriptionAttribute.cs
- CodeAttributeArgumentCollection.cs
- XmlSiteMapProvider.cs
- DbProviderFactoriesConfigurationHandler.cs
- SqlCommandBuilder.cs
- MemoryStream.cs
- ScrollPatternIdentifiers.cs
- SmiRequestExecutor.cs
- DataGridItemCollection.cs
- StateManagedCollection.cs
- FocusManager.cs
- DelegateHelpers.cs
- EventSinkHelperWriter.cs
- Boolean.cs
- GenericXmlSecurityTokenAuthenticator.cs
- ToolStripDropDownItem.cs
- TextModifier.cs
- MarkupObject.cs
- Merger.cs
- ConfigurationValues.cs
- MetaTable.cs
- ProfessionalColors.cs
- ArrayItemValue.cs
- CngUIPolicy.cs
- ISSmlParser.cs
- ImagingCache.cs
- WebReferencesBuildProvider.cs
- formatstringdialog.cs
- WebSysDisplayNameAttribute.cs
- CaseInsensitiveOrdinalStringComparer.cs
- XmlHierarchicalEnumerable.cs
- NumberSubstitution.cs
- wgx_exports.cs
- cryptoapiTransform.cs
- ComponentDispatcher.cs
- PropertyMapper.cs
- DataGridViewImageColumn.cs
- EventLevel.cs
- CompositeClientFormatter.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- EdmScalarPropertyAttribute.cs
- DataGridViewCellStateChangedEventArgs.cs
- CodeSnippetStatement.cs
- EngineSiteSapi.cs
- XmlExtensionFunction.cs
- ImmComposition.cs
- ScrollBarRenderer.cs
- UserPersonalizationStateInfo.cs
- ComponentResourceManager.cs
- AffineTransform3D.cs
- KeyedHashAlgorithm.cs
- ModuleBuilder.cs
- Debugger.cs
- PublisherIdentityPermission.cs
- ImageAttributes.cs
- DateTime.cs
- WebPartsSection.cs
- SeverityFilter.cs
- FullTextBreakpoint.cs
- StringCollectionMarkupSerializer.cs
- DriveNotFoundException.cs
- NameObjectCollectionBase.cs
- DoubleAnimationClockResource.cs
- WindowsFormsHostPropertyMap.cs
- GPStream.cs
- HtmlInputControl.cs
- ApplicationFileParser.cs
- TreeViewItem.cs
- Debug.cs
- FirstMatchCodeGroup.cs
- OracleCommand.cs
- ColumnBinding.cs
- AttachedPropertyBrowsableAttribute.cs
- DoubleAnimationUsingPath.cs
- PeerName.cs
- SqlDataSourceWizardForm.cs
- LostFocusEventManager.cs
- ExeConfigurationFileMap.cs