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
- PropertyEmitterBase.cs
- EntityContainer.cs
- HighlightComponent.cs
- EntityDataSourceDesignerHelper.cs
- selecteditemcollection.cs
- MenuItemStyleCollection.cs
- Catch.cs
- Memoizer.cs
- _Events.cs
- DynamicMetaObjectBinder.cs
- CodeLinePragma.cs
- References.cs
- ColorTranslator.cs
- BackgroundFormatInfo.cs
- TextRangeBase.cs
- PropertyGridView.cs
- TaskHelper.cs
- TextHidden.cs
- SettingsAttributes.cs
- WebPartChrome.cs
- TransportSecurityProtocol.cs
- ValidationHelper.cs
- OciHandle.cs
- SectionRecord.cs
- HwndTarget.cs
- DragCompletedEventArgs.cs
- EntityDataSourceMemberPath.cs
- PersonalizationEntry.cs
- ServiceNameCollection.cs
- ToolStripItemImageRenderEventArgs.cs
- ParameterCollectionEditorForm.cs
- XmlText.cs
- TraceRecord.cs
- XmlSchemaAttributeGroup.cs
- AxParameterData.cs
- ModuleBuilder.cs
- graph.cs
- DataSourceSelectArguments.cs
- FieldInfo.cs
- WindowsFont.cs
- TextModifier.cs
- Marshal.cs
- QilDataSource.cs
- SharedStatics.cs
- MenuTracker.cs
- FrameworkElementFactory.cs
- PolicyUnit.cs
- BackgroundFormatInfo.cs
- PreProcessInputEventArgs.cs
- SafeNativeMethodsCLR.cs
- ArrayElementGridEntry.cs
- EntityDataSourceConfigureObjectContext.cs
- WindowsMenu.cs
- ParallelEnumerableWrapper.cs
- QueryResponse.cs
- QilChoice.cs
- AssemblyNameProxy.cs
- OracleBoolean.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ExpressionReplacer.cs
- BlurBitmapEffect.cs
- ErrorTableItemStyle.cs
- Base64Encoder.cs
- SafeCryptContextHandle.cs
- BitmapEffectRenderDataResource.cs
- DrawTreeNodeEventArgs.cs
- BindingListCollectionView.cs
- SrgsSubset.cs
- BaseTransportHeaders.cs
- UserControlCodeDomTreeGenerator.cs
- NotifyIcon.cs
- SiteMapNodeCollection.cs
- VisualStyleInformation.cs
- GPPOINTF.cs
- XmlSchemaAny.cs
- SiteMapHierarchicalDataSourceView.cs
- SafeLibraryHandle.cs
- SoundPlayerAction.cs
- BasicViewGenerator.cs
- SqlVersion.cs
- ReturnValue.cs
- Constant.cs
- VirtualPathProvider.cs
- AnnotationComponentChooser.cs
- FullTextState.cs
- graph.cs
- ResizeBehavior.cs
- RelationshipConverter.cs
- LayoutSettings.cs
- ProjectionPlan.cs
- DbDeleteCommandTree.cs
- CustomCategoryAttribute.cs
- SynchronizedInputHelper.cs
- embossbitmapeffect.cs
- CombinedHttpChannel.cs
- AttributeSetAction.cs
- AlternateView.cs
- PenThreadWorker.cs
- FixedSOMPageElement.cs
- EmptyEnumerator.cs