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
- DataKey.cs
- ExtensionQuery.cs
- TextFormattingConverter.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ScrollContentPresenter.cs
- IntSecurity.cs
- PackageDigitalSignatureManager.cs
- Instrumentation.cs
- SpeechUI.cs
- EpmSyndicationContentSerializer.cs
- TimeIntervalCollection.cs
- NumberSubstitution.cs
- WindowsEditBoxRange.cs
- PropertyOrder.cs
- CompilationLock.cs
- SwitchElementsCollection.cs
- FacetValues.cs
- EditingContext.cs
- PartialClassGenerationTaskInternal.cs
- SectionXmlInfo.cs
- TextEditor.cs
- DataGridViewTextBoxCell.cs
- EmptyReadOnlyDictionaryInternal.cs
- ToolStripItemEventArgs.cs
- ShaderEffect.cs
- SimpleTypeResolver.cs
- SizeAnimation.cs
- mediaeventshelper.cs
- RetrieveVirtualItemEventArgs.cs
- _WinHttpWebProxyDataBuilder.cs
- SizeConverter.cs
- HttpModuleAction.cs
- HttpModuleCollection.cs
- BrushConverter.cs
- PrintPageEvent.cs
- HttpRequestWrapper.cs
- AuthStoreRoleProvider.cs
- SignedInfo.cs
- DataObjectEventArgs.cs
- OperationAbortedException.cs
- RuleSettings.cs
- TextCharacters.cs
- UInt64.cs
- ScrollEvent.cs
- EdmProviderManifest.cs
- SQLString.cs
- PageParser.cs
- BuildManager.cs
- WindowHideOrCloseTracker.cs
- HttpListenerRequest.cs
- AffineTransform3D.cs
- Transform.cs
- MetadataPropertyvalue.cs
- InternalTypeHelper.cs
- figurelengthconverter.cs
- IListConverters.cs
- XamlToRtfParser.cs
- ScrollBarRenderer.cs
- SchemaMapping.cs
- DataGridViewTextBoxEditingControl.cs
- EndpointConfigContainer.cs
- DependencyObject.cs
- FilteredSchemaElementLookUpTable.cs
- NotCondition.cs
- Missing.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- StateDesigner.LayoutSelectionGlyph.cs
- MethodCallTranslator.cs
- OutputCacheSettingsSection.cs
- ImageBrush.cs
- BookmarkNameHelper.cs
- ScriptDescriptor.cs
- GroupQuery.cs
- HandlerBase.cs
- InvalidCastException.cs
- DateTimeStorage.cs
- ThicknessAnimationBase.cs
- BinHexDecoder.cs
- DiscardableAttribute.cs
- FlowchartDesignerCommands.cs
- ManagedFilter.cs
- Control.cs
- PropertyGridEditorPart.cs
- ContextDataSource.cs
- HttpRequestWrapper.cs
- InvalidCastException.cs
- StylusTip.cs
- ButtonBase.cs
- Color.cs
- CompositionDesigner.cs
- CodeDelegateCreateExpression.cs
- ColorInterpolationModeValidation.cs
- SoapHeader.cs
- UnsafeNativeMethodsCLR.cs
- ProjectionCamera.cs
- Icon.cs
- TextEffect.cs
- NetWebProxyFinder.cs
- HtmlInputButton.cs
- String.cs