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
- FrameworkContentElementAutomationPeer.cs
- SmtpClient.cs
- xamlnodes.cs
- HandlerBase.cs
- Update.cs
- PostBackTrigger.cs
- StatusBarAutomationPeer.cs
- DropShadowBitmapEffect.cs
- XmlImplementation.cs
- DesignDataSource.cs
- ParallelLoopState.cs
- SoapAttributes.cs
- UpdateExpressionVisitor.cs
- GZipObjectSerializer.cs
- UIElementParagraph.cs
- CodeDirectiveCollection.cs
- StoreAnnotationsMap.cs
- FixedSOMFixedBlock.cs
- KeySpline.cs
- DetailsView.cs
- WizardPanel.cs
- TypefaceCollection.cs
- PbrsForward.cs
- ListView.cs
- EventLogEntryCollection.cs
- ColorConverter.cs
- DynamicValidatorEventArgs.cs
- AttachedPropertyInfo.cs
- ScriptIgnoreAttribute.cs
- OleDbException.cs
- DateTimeFormat.cs
- GrammarBuilderRuleRef.cs
- ThreadExceptionDialog.cs
- TableAutomationPeer.cs
- WorkflowQueuingService.cs
- _NestedSingleAsyncResult.cs
- DllNotFoundException.cs
- DataGridViewCellFormattingEventArgs.cs
- TypeBuilder.cs
- DelegateTypeInfo.cs
- SqlWebEventProvider.cs
- ConfigXmlAttribute.cs
- _AutoWebProxyScriptHelper.cs
- Vars.cs
- RouteParser.cs
- Classification.cs
- XsdDateTime.cs
- ColumnWidthChangingEvent.cs
- DataServiceExpressionVisitor.cs
- BindingList.cs
- UITypeEditor.cs
- QueryRewriter.cs
- MimeMapping.cs
- ImageMap.cs
- InputScope.cs
- DataGridSortCommandEventArgs.cs
- RoleServiceManager.cs
- TaskFormBase.cs
- AccessDataSourceView.cs
- ToolStripSystemRenderer.cs
- AutoGeneratedField.cs
- SqlCharStream.cs
- TcpChannelFactory.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- Win32.cs
- EnterpriseServicesHelper.cs
- TrackBarDesigner.cs
- DrawingDrawingContext.cs
- XPathDocumentNavigator.cs
- TextEditorCharacters.cs
- CriticalHandle.cs
- DictionaryMarkupSerializer.cs
- XsltConvert.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- Exceptions.cs
- ModuleConfigurationInfo.cs
- DataRecordInfo.cs
- PartialCachingAttribute.cs
- DataBoundControlAdapter.cs
- _Events.cs
- Utilities.cs
- FrameworkTextComposition.cs
- RankException.cs
- SmiEventSink_DeferedProcessing.cs
- SqlNode.cs
- CorrelationActionMessageFilter.cs
- TextReader.cs
- WebBaseEventKeyComparer.cs
- SqlExpressionNullability.cs
- DataSourceDesigner.cs
- LayoutSettings.cs
- RectAnimation.cs
- StoreItemCollection.Loader.cs
- HashJoinQueryOperatorEnumerator.cs
- TextModifier.cs
- ReadOnlyNameValueCollection.cs
- Opcode.cs
- GraphicsContainer.cs
- SignedInfo.cs
- RowBinding.cs