Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AddInStore.cs
- OdbcUtils.cs
- SmtpClient.cs
- EditorZoneBase.cs
- PointAnimation.cs
- EventDescriptor.cs
- ConnectionsZone.cs
- BuiltInExpr.cs
- ReachPrintTicketSerializer.cs
- ItemsChangedEventArgs.cs
- SmtpException.cs
- odbcmetadatacolumnnames.cs
- SkinBuilder.cs
- DispatchWrapper.cs
- exports.cs
- TextEditorThreadLocalStore.cs
- ListBox.cs
- CodeCastExpression.cs
- ToolboxItemAttribute.cs
- XmlSchemaSimpleContent.cs
- PipelineDeploymentState.cs
- AnnotationService.cs
- MessageTraceRecord.cs
- FtpCachePolicyElement.cs
- ErrorItem.cs
- DSGeneratorProblem.cs
- OrderByBuilder.cs
- BindingWorker.cs
- InternalBufferOverflowException.cs
- DependencySource.cs
- XmlSchemaAttributeGroup.cs
- XmlDataCollection.cs
- StaticSiteMapProvider.cs
- ColumnResizeAdorner.cs
- CatalogZone.cs
- MailWebEventProvider.cs
- XmlSchemaElement.cs
- XmlHelper.cs
- SymbolTable.cs
- FileChangeNotifier.cs
- RootProjectionNode.cs
- UDPClient.cs
- filewebresponse.cs
- SqlPersonalizationProvider.cs
- ThreadStaticAttribute.cs
- _ConnectStream.cs
- BulletedList.cs
- ApplicationProxyInternal.cs
- XmlAttributeAttribute.cs
- SupportsPreviewControlAttribute.cs
- WindowsGrip.cs
- ItemCheckEvent.cs
- BrowserInteropHelper.cs
- EventTrigger.cs
- Deserializer.cs
- ApplicationDirectoryMembershipCondition.cs
- EncodingDataItem.cs
- SchemaCollectionCompiler.cs
- MaskDesignerDialog.cs
- TypeForwardedFromAttribute.cs
- unitconverter.cs
- ListViewDeleteEventArgs.cs
- Not.cs
- ValidationPropertyAttribute.cs
- Win32.cs
- DrawingContext.cs
- File.cs
- PaperSize.cs
- TouchesOverProperty.cs
- RuntimeConfig.cs
- SurrogateSelector.cs
- BindingCompleteEventArgs.cs
- DefinitionUpdate.cs
- SingleConverter.cs
- GenerateTemporaryTargetAssembly.cs
- BoundsDrawingContextWalker.cs
- ClockController.cs
- StickyNoteContentControl.cs
- CheckBoxRenderer.cs
- XmlNavigatorStack.cs
- ListArgumentProvider.cs
- CrossSiteScriptingValidation.cs
- CompensationDesigner.cs
- ObjectView.cs
- FaultDesigner.cs
- SynchronizingStream.cs
- ExceptionHandlersDesigner.cs
- ToolbarAUtomationPeer.cs
- ModelToObjectValueConverter.cs
- GlobalItem.cs
- Comparer.cs
- JsonMessageEncoderFactory.cs
- WhileDesigner.xaml.cs
- DetailsViewInsertEventArgs.cs
- Int32Rect.cs
- MetricEntry.cs
- LinqTreeNodeEvaluator.cs
- PriorityQueue.cs
- TimeStampChecker.cs
- CodePageEncoding.cs