Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / InvalidComObjectException.cs / 1305376 / InvalidComObjectException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InvalidComObjectException ** ** Purpose: This exception is thrown when an invalid COM object is used. This ** happens when a the __ComObject type is used directly without ** having a backing class factory. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class InvalidComObjectException : SystemException { public InvalidComObjectException() : base(Environment.GetResourceString("Arg_InvalidComObjectException")) { SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT); } public InvalidComObjectException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT); } public InvalidComObjectException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT); } [System.Security.SecuritySafeCritical] // auto-generated protected InvalidComObjectException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InvalidComObjectException ** ** Purpose: This exception is thrown when an invalid COM object is used. This ** happens when a the __ComObject type is used directly without ** having a backing class factory. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class InvalidComObjectException : SystemException { public InvalidComObjectException() : base(Environment.GetResourceString("Arg_InvalidComObjectException")) { SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT); } public InvalidComObjectException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT); } public InvalidComObjectException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_INVALIDCOMOBJECT); } [System.Security.SecuritySafeCritical] // auto-generated protected InvalidComObjectException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // 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
- ClassHandlersStore.cs
- TypefaceMetricsCache.cs
- FieldDescriptor.cs
- Transform3D.cs
- FlowDocument.cs
- CreatingCookieEventArgs.cs
- TextRangeEdit.cs
- IdleTimeoutMonitor.cs
- CommandExpr.cs
- SecureUICommand.cs
- DoubleAnimationClockResource.cs
- PrintPageEvent.cs
- Types.cs
- DataRowChangeEvent.cs
- SoapFault.cs
- PtsHost.cs
- OdbcEnvironment.cs
- ObjectIDGenerator.cs
- XsltException.cs
- TextMetrics.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- StylusPointProperties.cs
- ResourcesGenerator.cs
- IIS7UserPrincipal.cs
- DictionaryItemsCollection.cs
- SevenBitStream.cs
- SharedConnectionInfo.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- FontCacheUtil.cs
- FrameworkObject.cs
- SecurityUtils.cs
- InertiaRotationBehavior.cs
- WindowsListViewGroupSubsetLink.cs
- XhtmlTextWriter.cs
- WebPartCollection.cs
- StateItem.cs
- NamespaceCollection.cs
- CustomExpression.cs
- Mouse.cs
- SelectedDatesCollection.cs
- GraphicsContext.cs
- SimpleTableProvider.cs
- Interlocked.cs
- ExpandCollapseProviderWrapper.cs
- ThreadStartException.cs
- FixedBufferAttribute.cs
- SmiSettersStream.cs
- AnimationTimeline.cs
- GridViewUpdateEventArgs.cs
- NativeMethods.cs
- InvariantComparer.cs
- Switch.cs
- DomainConstraint.cs
- SettingsProperty.cs
- SystemIPGlobalStatistics.cs
- ExpressionVisitor.cs
- HttpStreamFormatter.cs
- StringExpressionSet.cs
- GenericPrincipal.cs
- SystemColors.cs
- ProcessRequestArgs.cs
- FixUpCollection.cs
- Decimal.cs
- TheQuery.cs
- CompilerCollection.cs
- GroupStyle.cs
- Point.cs
- Themes.cs
- RoleManagerModule.cs
- TypedDataSourceCodeGenerator.cs
- VisualTransition.cs
- HostExecutionContextManager.cs
- CompModSwitches.cs
- SwitchElementsCollection.cs
- datacache.cs
- PerformanceCounterPermission.cs
- sqlser.cs
- PolyLineSegment.cs
- cookiecollection.cs
- Span.cs
- SecurityTokenInclusionMode.cs
- EdmEntityTypeAttribute.cs
- NameValueCollection.cs
- XmlSchemaRedefine.cs
- MouseDevice.cs
- MailWriter.cs
- AnalyzedTree.cs
- ValueQuery.cs
- ObjectToModelValueConverter.cs
- PassportAuthentication.cs
- HtmlInputRadioButton.cs
- SettingsSection.cs
- BackStopAuthenticationModule.cs
- ZoneButton.cs
- HwndMouseInputProvider.cs
- MultitargetingHelpers.cs
- Boolean.cs
- XamlSerializer.cs
- storepermission.cs
- TextClipboardData.cs