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
- TableLayoutPanel.cs
- XmlSchemaComplexContent.cs
- CheckBoxBaseAdapter.cs
- DecimalConverter.cs
- AliasGenerator.cs
- VisualStateManager.cs
- PersonalizationProviderHelper.cs
- DependencyStoreSurrogate.cs
- EnumBuilder.cs
- SurrogateSelector.cs
- Char.cs
- DataContractSerializerOperationFormatter.cs
- mediapermission.cs
- FixedSchema.cs
- DynamicActionMessageFilter.cs
- ManageRequest.cs
- IsolationInterop.cs
- NonVisualControlAttribute.cs
- SqlBooleanizer.cs
- TreeViewImageIndexConverter.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ImageList.cs
- wgx_exports.cs
- UIElement3D.cs
- SafeCloseHandleCritical.cs
- ToolStripSystemRenderer.cs
- _NegoStream.cs
- OleDbRowUpdatedEvent.cs
- prompt.cs
- SoapTypeAttribute.cs
- unitconverter.cs
- UrlPath.cs
- MappingException.cs
- Transactions.cs
- CatchBlock.cs
- ActivityTypeResolver.xaml.cs
- ConfigurationConverterBase.cs
- ColorAnimationBase.cs
- EventDescriptor.cs
- Version.cs
- OracleDataAdapter.cs
- EncodingTable.cs
- PingOptions.cs
- AddDataControlFieldDialog.cs
- DesignerActionItemCollection.cs
- MethodAccessException.cs
- TextRunCache.cs
- TextServicesPropertyRanges.cs
- XmlAttributeAttribute.cs
- activationcontext.cs
- TaskbarItemInfo.cs
- RadioButtonPopupAdapter.cs
- LockCookie.cs
- NativeActivityFaultContext.cs
- TransformerTypeCollection.cs
- GeneralTransform.cs
- PathFigureCollectionConverter.cs
- RichTextBox.cs
- PropertyDescriptorGridEntry.cs
- ProjectedSlot.cs
- GridViewActionList.cs
- Vector3D.cs
- XmlSchemaGroup.cs
- SelectionItemPattern.cs
- DataTableCollection.cs
- SchemaImporterExtensionElement.cs
- FileSystemInfo.cs
- RijndaelCryptoServiceProvider.cs
- ReadOnlyActivityGlyph.cs
- MsmqTransportBindingElement.cs
- WindowPatternIdentifiers.cs
- AliasGenerator.cs
- SizeConverter.cs
- GPPOINTF.cs
- PipeException.cs
- ValidationResults.cs
- WeakEventTable.cs
- AuthenticatingEventArgs.cs
- WinEventWrap.cs
- BulletChrome.cs
- Hex.cs
- UndoEngine.cs
- XhtmlBasicSelectionListAdapter.cs
- GenericPrincipal.cs
- DropShadowEffect.cs
- AttachedPropertyInfo.cs
- CellPartitioner.cs
- _TLSstream.cs
- WmlLinkAdapter.cs
- BordersPage.cs
- HandlerWithFactory.cs
- DefaultTraceListener.cs
- AsyncContentLoadedEventArgs.cs
- ConfigUtil.cs
- FontNamesConverter.cs
- FixedSOMPage.cs
- DurableRuntimeValidator.cs
- AsymmetricSignatureFormatter.cs
- ImpersonationContext.cs
- AuthorizationSection.cs