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
- ListViewItem.cs
- ItemsPanelTemplate.cs
- FeatureManager.cs
- RepeaterCommandEventArgs.cs
- HttpListenerPrefixCollection.cs
- SmtpNetworkElement.cs
- HorizontalAlignConverter.cs
- TabPanel.cs
- Int64.cs
- NodeFunctions.cs
- OrderedDictionaryStateHelper.cs
- DefaultPrintController.cs
- DuplicateWaitObjectException.cs
- QilLiteral.cs
- FormViewPageEventArgs.cs
- LessThan.cs
- TypeInitializationException.cs
- UnionExpr.cs
- PeerTransportSecuritySettings.cs
- DataColumnCollection.cs
- CipherData.cs
- Transform.cs
- columnmapkeybuilder.cs
- DynamicResourceExtensionConverter.cs
- TemplateXamlParser.cs
- RtfNavigator.cs
- TextServicesDisplayAttributePropertyRanges.cs
- CodeCastExpression.cs
- AuthenticationModulesSection.cs
- DocumentSequence.cs
- DocumentReferenceCollection.cs
- HttpMethodConstraint.cs
- SectionRecord.cs
- TreeNodeBinding.cs
- validationstate.cs
- EncodingStreamWrapper.cs
- ReferencedType.cs
- BindingsCollection.cs
- XmlSigningNodeWriter.cs
- DbProviderFactories.cs
- DoubleKeyFrameCollection.cs
- RestClientProxyHandler.cs
- SqlUtils.cs
- UnSafeCharBuffer.cs
- OleDbCommandBuilder.cs
- iisPickupDirectory.cs
- TablePatternIdentifiers.cs
- JsonFormatMapping.cs
- AppDomainFactory.cs
- VirtualDirectoryMappingCollection.cs
- FixedFlowMap.cs
- TextAction.cs
- BezierSegment.cs
- AtomicFile.cs
- StateDesigner.Layouts.cs
- ListItemsCollectionEditor.cs
- SystemWebSectionGroup.cs
- ContainerActivationHelper.cs
- MenuItemCollectionEditorDialog.cs
- BooleanFunctions.cs
- PageBreakRecord.cs
- VolatileResourceManager.cs
- MemoryMappedFile.cs
- AddToCollection.cs
- WindowsScroll.cs
- DbUpdateCommandTree.cs
- TriggerCollection.cs
- RuntimeResourceSet.cs
- TraceHandler.cs
- Attachment.cs
- XmlILAnnotation.cs
- XPathDocumentIterator.cs
- EntityKey.cs
- HttpModuleAction.cs
- SchemaReference.cs
- CharacterBuffer.cs
- GridViewDeletedEventArgs.cs
- SerializationInfoEnumerator.cs
- ColumnHeader.cs
- WinFormsSecurity.cs
- ToolStripDropDown.cs
- RectKeyFrameCollection.cs
- CodeMethodReturnStatement.cs
- RegexWriter.cs
- StreamGeometry.cs
- XPathDocumentNavigator.cs
- TextBlockAutomationPeer.cs
- QfeChecker.cs
- CodeObject.cs
- StringToken.cs
- ClientEndpointLoader.cs
- GreenMethods.cs
- NodeFunctions.cs
- Single.cs
- Scene3D.cs
- SchemaDeclBase.cs
- CommandExpr.cs
- InheritanceContextHelper.cs
- ChannelManagerBase.cs
- ReadOnlyDataSourceView.cs