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
- Thickness.cs
- BitmapEffectOutputConnector.cs
- InvokeProviderWrapper.cs
- XPathEmptyIterator.cs
- ThemeConfigurationDialog.cs
- MiniParameterInfo.cs
- WebPartCollection.cs
- FamilyMap.cs
- ElementFactory.cs
- CompilerTypeWithParams.cs
- WebPartTransformerCollection.cs
- _SecureChannel.cs
- CodeTypeReferenceExpression.cs
- RandomNumberGenerator.cs
- Marshal.cs
- SoapHeaderException.cs
- CaseCqlBlock.cs
- EventLogRecord.cs
- _NestedSingleAsyncResult.cs
- XsdDateTime.cs
- MiniLockedBorderGlyph.cs
- RelationHandler.cs
- BrowserInteropHelper.cs
- CodeTypeReferenceCollection.cs
- Menu.cs
- SymbolEqualComparer.cs
- WeakReference.cs
- ExpressionBuilderCollection.cs
- DuplicateWaitObjectException.cs
- DataRelation.cs
- XmlSchemaImporter.cs
- EntityProviderServices.cs
- DataGridViewRowPostPaintEventArgs.cs
- DataObjectSettingDataEventArgs.cs
- TriggerBase.cs
- SqlCacheDependencyDatabaseCollection.cs
- ControlValuePropertyAttribute.cs
- SQLInt16.cs
- DashStyle.cs
- PowerStatus.cs
- GeometryGroup.cs
- PageCodeDomTreeGenerator.cs
- StringConverter.cs
- ConnectionProviderAttribute.cs
- PixelFormat.cs
- EnumBuilder.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- sqlinternaltransaction.cs
- CustomValidator.cs
- Int32RectValueSerializer.cs
- RestHandlerFactory.cs
- XPathParser.cs
- OracleMonthSpan.cs
- SurrogateSelector.cs
- DiscriminatorMap.cs
- ManifestSignatureInformation.cs
- WmlTextViewAdapter.cs
- FileCodeGroup.cs
- XmlSchemaSet.cs
- PolyLineSegment.cs
- PrtCap_Public_Simple.cs
- Connection.cs
- TextFormatterHost.cs
- FixedBufferAttribute.cs
- VisualBrush.cs
- BrushConverter.cs
- AuthStoreRoleProvider.cs
- Cloud.cs
- Accessible.cs
- MultilineStringEditor.cs
- Splitter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- oledbconnectionstring.cs
- Int16AnimationUsingKeyFrames.cs
- PropertyDescriptorCollection.cs
- WindowsStatic.cs
- XmlHierarchicalDataSourceView.cs
- ObjectContext.cs
- HttpListenerContext.cs
- LambdaCompiler.Expressions.cs
- TimeZone.cs
- CompoundFileStreamReference.cs
- jithelpers.cs
- DesignOnlyAttribute.cs
- OperationPerformanceCounters.cs
- TabPanel.cs
- PauseStoryboard.cs
- Image.cs
- DummyDataSource.cs
- MessageEnumerator.cs
- DataGridViewRowPostPaintEventArgs.cs
- ConvertEvent.cs
- xmlfixedPageInfo.cs
- InternalControlCollection.cs
- DataBindingExpressionBuilder.cs
- ModifierKeysValueSerializer.cs
- Popup.cs
- JournalEntry.cs
- PropertyPushdownHelper.cs
- TypeUnloadedException.cs