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
- PngBitmapDecoder.cs
- BufferedConnection.cs
- DbMetaDataCollectionNames.cs
- WebPartEditorOkVerb.cs
- XpsTokenContext.cs
- MarkupProperty.cs
- SourceLocationProvider.cs
- Filter.cs
- ConstructorBuilder.cs
- SequentialOutput.cs
- LassoSelectionBehavior.cs
- AppDomain.cs
- UnmanagedMemoryStreamWrapper.cs
- PropertyInformationCollection.cs
- XPathScanner.cs
- XmlILIndex.cs
- ToolStripScrollButton.cs
- DomainConstraint.cs
- BitVector32.cs
- ObjectListCommandsPage.cs
- ToolStripContainer.cs
- ExecutedRoutedEventArgs.cs
- BulletChrome.cs
- Propagator.cs
- TagPrefixAttribute.cs
- safesecurityhelperavalon.cs
- CrossAppDomainChannel.cs
- InfoCardSymmetricAlgorithm.cs
- RPIdentityRequirement.cs
- HtmlInputControl.cs
- DCSafeHandle.cs
- SafeRightsManagementSessionHandle.cs
- ProjectionPruner.cs
- QuotaThrottle.cs
- BuildProvidersCompiler.cs
- HtmlInputRadioButton.cs
- GraphicsContainer.cs
- TextModifierScope.cs
- LinkedResource.cs
- ConfigXmlReader.cs
- NameNode.cs
- DesignerSerializationVisibilityAttribute.cs
- DtrList.cs
- ControllableStoryboardAction.cs
- ExitEventArgs.cs
- WebPart.cs
- DependencyPropertyAttribute.cs
- Stylesheet.cs
- ControlAdapter.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- XmlBaseReader.cs
- CollectionDataContract.cs
- ProcessHostMapPath.cs
- CheckBoxField.cs
- CustomExpression.cs
- SequenceFullException.cs
- CapabilitiesState.cs
- PropertyEntry.cs
- TypedTableBase.cs
- UrlAuthorizationModule.cs
- OLEDB_Enum.cs
- BuilderInfo.cs
- PropertyManager.cs
- XsltLoader.cs
- PersonalizablePropertyEntry.cs
- MetadataSet.cs
- Sentence.cs
- QilDataSource.cs
- ReadOnlyCollectionBase.cs
- SessionStateSection.cs
- Metafile.cs
- ExceptionUtil.cs
- SessionParameter.cs
- Interlocked.cs
- PersistenceException.cs
- Rotation3DKeyFrameCollection.cs
- CodeTryCatchFinallyStatement.cs
- RightsManagementEncryptionTransform.cs
- _SslState.cs
- ProcessThreadCollection.cs
- ZipIOModeEnforcingStream.cs
- MessageBox.cs
- WebServiceTypeData.cs
- EditorAttributeInfo.cs
- RuntimeEnvironment.cs
- Decorator.cs
- StateMachineTimers.cs
- ScaleTransform.cs
- CodeMemberMethod.cs
- XPathDocumentNavigator.cs
- WebPartCancelEventArgs.cs
- PropagatorResult.cs
- GlyphRunDrawing.cs
- TreeNodeConverter.cs
- Listbox.cs
- ExpandSegmentCollection.cs
- DetailsViewModeEventArgs.cs
- EnumValAlphaComparer.cs
- XmlSchemaElement.cs
- TimelineGroup.cs