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 / InvalidComObjectException.cs / 1 / 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); } 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); } 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
- EdmItemError.cs
- HashCodeCombiner.cs
- ProfessionalColors.cs
- XpsInterleavingPolicy.cs
- WebMessageEncoderFactory.cs
- SafeFileMappingHandle.cs
- CloudCollection.cs
- HtmlInputHidden.cs
- ContractHandle.cs
- RadioButtonRenderer.cs
- WebControlParameterProxy.cs
- DataGridViewHitTestInfo.cs
- Baml2006SchemaContext.cs
- InkCanvasSelection.cs
- WSDualHttpBindingCollectionElement.cs
- JournalNavigationScope.cs
- TextWriterTraceListener.cs
- DebugHandleTracker.cs
- TextClipboardData.cs
- ButtonBaseAutomationPeer.cs
- VisualProxy.cs
- DispatcherOperation.cs
- CodeExporter.cs
- TemplateLookupAction.cs
- ISO2022Encoding.cs
- BuildProviderCollection.cs
- Site.cs
- Help.cs
- SpotLight.cs
- BasicBrowserDialog.cs
- Interlocked.cs
- SurrogateSelector.cs
- processwaithandle.cs
- CustomError.cs
- EntityAdapter.cs
- ListViewItemEventArgs.cs
- TypeNameConverter.cs
- TabControl.cs
- CodeIterationStatement.cs
- TemplateBamlRecordReader.cs
- ipaddressinformationcollection.cs
- TrackingServices.cs
- DataReaderContainer.cs
- BindingGroup.cs
- ObjectAnimationUsingKeyFrames.cs
- BamlLocalizer.cs
- HttpServerVarsCollection.cs
- SQlBooleanStorage.cs
- TableRow.cs
- NetNamedPipeBindingElement.cs
- BamlTreeMap.cs
- ThreadExceptionDialog.cs
- TreeNodeClickEventArgs.cs
- Section.cs
- ExcludePathInfo.cs
- RawStylusInputCustomDataList.cs
- TextDecorationCollection.cs
- EnumBuilder.cs
- ScriptControlDescriptor.cs
- MethodBuilder.cs
- ToolBar.cs
- StrongNameUtility.cs
- EntitySqlQueryCacheEntry.cs
- X509PeerCertificateAuthenticationElement.cs
- ActivityBuilderHelper.cs
- LinkedList.cs
- SQLDouble.cs
- WebPartUtil.cs
- FragmentQueryProcessor.cs
- TypeUsageBuilder.cs
- DetailsViewInsertedEventArgs.cs
- DataBindingCollection.cs
- DataRowView.cs
- ProcessInfo.cs
- CellIdBoolean.cs
- ToolStripDropDownDesigner.cs
- TaiwanLunisolarCalendar.cs
- DataGridViewCellParsingEventArgs.cs
- DecimalConstantAttribute.cs
- NavigationFailedEventArgs.cs
- InkCanvasSelection.cs
- UnsafeNativeMethodsPenimc.cs
- Clipboard.cs
- ZipIOLocalFileHeader.cs
- PrimitiveSchema.cs
- CredentialCache.cs
- MergeFilterQuery.cs
- DataContractSet.cs
- ResourcesBuildProvider.cs
- WebBrowser.cs
- MessageDesigner.cs
- SuppressMessageAttribute.cs
- ToolStripProgressBar.cs
- ProfileGroupSettingsCollection.cs
- StaticTextPointer.cs
- XmlSchemaObjectCollection.cs
- TableLayoutPanel.cs
- SymLanguageVendor.cs
- TopClause.cs
- EventsTab.cs