Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlSchemaSimpleContentExtension.cs
- InputBuffer.cs
- TextEndOfSegment.cs
- UrlMappingsSection.cs
- TimeZoneNotFoundException.cs
- COM2TypeInfoProcessor.cs
- adornercollection.cs
- IdlingCommunicationPool.cs
- BuildProviderCollection.cs
- Transform3DGroup.cs
- DbConnectionStringBuilder.cs
- SerializationFieldInfo.cs
- ObjectListItemCollection.cs
- returneventsaver.cs
- FixedDocument.cs
- odbcmetadatafactory.cs
- ClientRuntimeConfig.cs
- DrawingAttributeSerializer.cs
- ElementsClipboardData.cs
- Rules.cs
- DocumentPageHost.cs
- _LocalDataStore.cs
- Typeface.cs
- KeyFrames.cs
- DrawListViewItemEventArgs.cs
- StatusBarPanelClickEvent.cs
- TaskFileService.cs
- ISAPIWorkerRequest.cs
- MatchAllMessageFilter.cs
- ActiveDocumentEvent.cs
- HostTimeoutsElement.cs
- WindowsAuthenticationEventArgs.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- GlobalEventManager.cs
- ProcessManager.cs
- SizeConverter.cs
- RoleManagerModule.cs
- CodeDirectiveCollection.cs
- CodeTypeParameter.cs
- Vector3dCollection.cs
- UDPClient.cs
- BooleanFunctions.cs
- SystemIPInterfaceProperties.cs
- WindowsEditBoxRange.cs
- SamlSecurityTokenAuthenticator.cs
- FtpWebRequest.cs
- WindowAutomationPeer.cs
- AsymmetricKeyExchangeDeformatter.cs
- Version.cs
- _CacheStreams.cs
- ImageBrush.cs
- MessageSmuggler.cs
- ToolStripDropDownClosingEventArgs.cs
- AbstractDataSvcMapFileLoader.cs
- DataFormats.cs
- HGlobalSafeHandle.cs
- CollectionViewGroupInternal.cs
- ToolStripItemCollection.cs
- OverlappedContext.cs
- PlatformCulture.cs
- DataGridSortCommandEventArgs.cs
- ConvertEvent.cs
- ProfileProvider.cs
- XmlUrlResolver.cs
- SortDescriptionCollection.cs
- ConnectionsZone.cs
- InteropAutomationProvider.cs
- RuntimeWrappedException.cs
- mactripleDES.cs
- EncryptedHeader.cs
- SoapExtensionTypeElementCollection.cs
- SoapCommonClasses.cs
- ApplicationBuildProvider.cs
- StructuredProperty.cs
- arabicshape.cs
- Int16.cs
- RichTextBox.cs
- NameTable.cs
- SchemaAttDef.cs
- ChangeProcessor.cs
- BitStream.cs
- JobCollate.cs
- InfoCardKeyedHashAlgorithm.cs
- ContentFilePart.cs
- MultiByteCodec.cs
- BrowserCapabilitiesFactory.cs
- SqlMethodCallConverter.cs
- Missing.cs
- SequentialUshortCollection.cs
- Switch.cs
- WebPartDisplayModeCollection.cs
- WebPartEditorApplyVerb.cs
- CannotUnloadAppDomainException.cs
- _SslStream.cs
- HelloOperationAsyncResult.cs
- WindowAutomationPeer.cs
- CollectionBuilder.cs
- LiteralControl.cs
- SID.cs
- ObjectView.cs