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
- EmbeddedMailObjectsCollection.cs
- XmlSchemaComplexContentRestriction.cs
- ConsumerConnectionPointCollection.cs
- PointAnimationClockResource.cs
- ClientTarget.cs
- SemanticBasicElement.cs
- CompModHelpers.cs
- ToolStripItem.cs
- InvokeMethodActivity.cs
- EventLogTraceListener.cs
- AccessibleObject.cs
- NamedPipeHostedTransportConfiguration.cs
- SourceFilter.cs
- AssemblyResourceLoader.cs
- SqlMultiplexer.cs
- MetaType.cs
- Events.cs
- TextPointer.cs
- ClientTarget.cs
- ServerTooBusyException.cs
- ToolStripSeparatorRenderEventArgs.cs
- SqlCacheDependencySection.cs
- WindowsToolbar.cs
- EntityDataSourceWrapper.cs
- Converter.cs
- StateFinalizationDesigner.cs
- ColorPalette.cs
- TextServicesPropertyRanges.cs
- FontConverter.cs
- WebUtil.cs
- TextTreeText.cs
- RoleService.cs
- FormsAuthenticationCredentials.cs
- MethodBuilderInstantiation.cs
- CodeSnippetTypeMember.cs
- DataContractAttribute.cs
- SqlBuilder.cs
- DiscoveryEndpoint.cs
- PerformanceCounter.cs
- SocketManager.cs
- VersionValidator.cs
- UniqueConstraint.cs
- ProjectionQueryOptionExpression.cs
- RotateTransform3D.cs
- Icon.cs
- PropertyStore.cs
- PermissionRequestEvidence.cs
- TypeUtil.cs
- PropertyFilterAttribute.cs
- DescendantQuery.cs
- CriticalExceptions.cs
- TypeToTreeConverter.cs
- CompilerGeneratedAttribute.cs
- NaturalLanguageHyphenator.cs
- OdbcTransaction.cs
- TickBar.cs
- AccessViolationException.cs
- TextViewElement.cs
- StrokeFIndices.cs
- ScrollEvent.cs
- TypeGenericEnumerableViewSchema.cs
- FlowDocumentReaderAutomationPeer.cs
- SupportingTokenSpecification.cs
- StringFreezingAttribute.cs
- documentsequencetextcontainer.cs
- OlePropertyStructs.cs
- EnvelopeVersion.cs
- ActivityStateQuery.cs
- PartialCachingAttribute.cs
- FunctionImportMapping.cs
- XmlCollation.cs
- GridViewDeletedEventArgs.cs
- InternalConfigEventArgs.cs
- _UriSyntax.cs
- ObjectStateManagerMetadata.cs
- PathSegmentCollection.cs
- LOSFormatter.cs
- RightsManagementInformation.cs
- EnterpriseServicesHelper.cs
- SlotInfo.cs
- Translator.cs
- SingleAnimationBase.cs
- TextSelectionHelper.cs
- XmlChildNodes.cs
- Attributes.cs
- XmlSchemaObject.cs
- AutoGeneratedFieldProperties.cs
- ToolStripSystemRenderer.cs
- XmlTypeMapping.cs
- CellLabel.cs
- ComponentChangingEvent.cs
- TimeEnumHelper.cs
- XmlChoiceIdentifierAttribute.cs
- FilteredXmlReader.cs
- EpmHelper.cs
- LineSegment.cs
- Soap.cs
- MyContact.cs
- PerfCounters.cs
- FileNotFoundException.cs