Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Pointer.cs
- Quaternion.cs
- BaseProcessor.cs
- HttpPostedFileWrapper.cs
- DataListItemCollection.cs
- TextUtf8RawTextWriter.cs
- IPEndPoint.cs
- LocationReferenceValue.cs
- X509RawDataKeyIdentifierClause.cs
- mongolianshape.cs
- DataGrid.cs
- DockPattern.cs
- RawStylusSystemGestureInputReport.cs
- FrameworkObject.cs
- LayoutEngine.cs
- WebScriptEnablingBehavior.cs
- DataListItemCollection.cs
- Parallel.cs
- SecurityHelper.cs
- DiscardableAttribute.cs
- Int16.cs
- TextDpi.cs
- GetFileNameResult.cs
- EventBuilder.cs
- Control.cs
- CompModHelpers.cs
- LineGeometry.cs
- MinimizableAttributeTypeConverter.cs
- ReflectionTypeLoadException.cs
- AddInDeploymentState.cs
- AsyncOperation.cs
- XpsPartBase.cs
- Point.cs
- MenuEventArgs.cs
- SrgsRule.cs
- basemetadatamappingvisitor.cs
- SafeArrayRankMismatchException.cs
- XpsInterleavingPolicy.cs
- MsmqIntegrationValidationBehavior.cs
- WebPartChrome.cs
- CompositeFontParser.cs
- XsdBuildProvider.cs
- DrawingContextWalker.cs
- SHA1Managed.cs
- HttpWriter.cs
- Avt.cs
- AssemblyAttributesGoHere.cs
- SqlParameterCollection.cs
- SqlConnectionString.cs
- SchemaTypeEmitter.cs
- PerfCounterSection.cs
- ImageSourceValueSerializer.cs
- EdmComplexPropertyAttribute.cs
- IQueryable.cs
- AttributeCollection.cs
- Vector3D.cs
- BitmapEffectvisualstate.cs
- FormsAuthenticationUser.cs
- TextTreeNode.cs
- Int64Storage.cs
- ColorBlend.cs
- ChannelManager.cs
- RequestQueue.cs
- QuestionEventArgs.cs
- Int16Converter.cs
- RegistryDataKey.cs
- AvTraceDetails.cs
- PeerDuplexChannel.cs
- UshortList2.cs
- PauseStoryboard.cs
- NamespaceEmitter.cs
- ViewBox.cs
- SecurityTokenRequirement.cs
- SoapAttributeAttribute.cs
- CompositeFontInfo.cs
- FormsAuthenticationCredentials.cs
- Tuple.cs
- ExpressionPrefixAttribute.cs
- TextTreeNode.cs
- URLMembershipCondition.cs
- ImplicitInputBrush.cs
- DataStreamFromComStream.cs
- CompensationExtension.cs
- LockCookie.cs
- LocatorPartList.cs
- ReflectEventDescriptor.cs
- SafeNativeMethods.cs
- BuildProvidersCompiler.cs
- DriveNotFoundException.cs
- ServiceDebugBehavior.cs
- TimeSpanOrInfiniteValidator.cs
- DeclarationUpdate.cs
- InfoCardBaseException.cs
- SolidBrush.cs
- Empty.cs
- ObjectStateFormatter.cs
- BitmapScalingModeValidation.cs
- srgsitem.cs
- MachineKeySection.cs
- ThaiBuddhistCalendar.cs