Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReadingWritingEntityEventArgs.cs
- MetaType.cs
- BulletDecorator.cs
- LineSegment.cs
- DBConnectionString.cs
- ToolStripProgressBar.cs
- PrivacyNoticeElement.cs
- KeyValuePair.cs
- ExecutedRoutedEventArgs.cs
- GACMembershipCondition.cs
- Update.cs
- DiagnosticTrace.cs
- PriorityQueue.cs
- DateTimeFormat.cs
- LinqDataSourceView.cs
- StreamInfo.cs
- MissingMemberException.cs
- XsltLibrary.cs
- SoapSchemaExporter.cs
- Activity.cs
- DbModificationClause.cs
- StatusBarDrawItemEvent.cs
- InProcStateClientManager.cs
- MsmqIntegrationBindingElement.cs
- ModuleConfigurationInfo.cs
- UnsafeNativeMethods.cs
- PolicyLevel.cs
- ManipulationDeltaEventArgs.cs
- FontInfo.cs
- PointConverter.cs
- HtmlToClrEventProxy.cs
- AutomationProperties.cs
- GridViewDeleteEventArgs.cs
- DataGridViewComboBoxCell.cs
- XmlExpressionDumper.cs
- BinaryWriter.cs
- StoreItemCollection.cs
- MouseButton.cs
- PagerSettings.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- DSASignatureFormatter.cs
- XmlEncodedRawTextWriter.cs
- GeneralTransform3D.cs
- ListDictionaryInternal.cs
- Button.cs
- BitmapPalettes.cs
- EditorPart.cs
- HttpException.cs
- TypeConverter.cs
- MissingMethodException.cs
- Comparer.cs
- MatrixConverter.cs
- StylusPointPropertyId.cs
- ConversionHelper.cs
- ColumnMapVisitor.cs
- TextViewSelectionProcessor.cs
- BufferedStream.cs
- PointValueSerializer.cs
- EntityDescriptor.cs
- SystemTcpConnection.cs
- DataGridViewRow.cs
- contentDescriptor.cs
- ExpressionBinding.cs
- GetCryptoTransformRequest.cs
- ToolCreatedEventArgs.cs
- WindowCollection.cs
- JsonFormatReaderGenerator.cs
- KeyboardDevice.cs
- LayoutDump.cs
- ImageCodecInfoPrivate.cs
- BaseTemplateBuildProvider.cs
- OdbcPermission.cs
- OutputCacheProfileCollection.cs
- InstanceDescriptor.cs
- DrawingGroupDrawingContext.cs
- BitmapData.cs
- RecommendedAsConfigurableAttribute.cs
- SHA512.cs
- DataGridViewColumnHeaderCell.cs
- DragCompletedEventArgs.cs
- FtpRequestCacheValidator.cs
- _Rfc2616CacheValidators.cs
- SafeTimerHandle.cs
- ClientApiGenerator.cs
- XmlTextReaderImplHelpers.cs
- Trace.cs
- WebPartCollection.cs
- DataColumnChangeEvent.cs
- TCEAdapterGenerator.cs
- LayoutTable.cs
- LinkConverter.cs
- CommonRemoteMemoryBlock.cs
- ScriptReferenceEventArgs.cs
- OutputCacheSettingsSection.cs
- CultureSpecificStringDictionary.cs
- mongolianshape.cs
- AsymmetricKeyExchangeDeformatter.cs
- TransformValueSerializer.cs
- GeneralTransform3DGroup.cs
- ActiveXSite.cs