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
- Pair.cs
- TableColumn.cs
- AssociationSetEnd.cs
- XmlSchemaRedefine.cs
- CAGDesigner.cs
- DateTimeValueSerializerContext.cs
- WorkflowEventArgs.cs
- StrokeNode.cs
- RowUpdatingEventArgs.cs
- ConfigXmlWhitespace.cs
- ResetableIterator.cs
- SoapAttributeAttribute.cs
- LexicalChunk.cs
- ChannelManager.cs
- ValidatorAttribute.cs
- ComponentResourceKey.cs
- MouseOverProperty.cs
- TableParagraph.cs
- Sentence.cs
- BamlReader.cs
- ControlBuilderAttribute.cs
- StyleCollection.cs
- RichTextBoxConstants.cs
- CoTaskMemHandle.cs
- UIElement.cs
- Material.cs
- GlyphRunDrawing.cs
- WaitHandleCannotBeOpenedException.cs
- XamlFrame.cs
- CompositeScriptReference.cs
- Baml2006Reader.cs
- ExpressionParser.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- UriSection.cs
- SortFieldComparer.cs
- XDeferredAxisSource.cs
- ObjectPersistData.cs
- WebPartManagerInternals.cs
- InternalBufferOverflowException.cs
- XsltLoader.cs
- NodeFunctions.cs
- ProtocolViolationException.cs
- Style.cs
- ReleaseInstanceMode.cs
- ParameterToken.cs
- TextEditorSpelling.cs
- RuleInfoComparer.cs
- ClaimTypes.cs
- oledbconnectionstring.cs
- Triplet.cs
- TextWriterEngine.cs
- ReceiveCompletedEventArgs.cs
- MultiSelector.cs
- FactoryGenerator.cs
- ImpersonateTokenRef.cs
- DocobjHost.cs
- WebPartConnectionsEventArgs.cs
- BehaviorEditorPart.cs
- Int32Storage.cs
- MissingMemberException.cs
- ResourceManagerWrapper.cs
- SecurityPolicySection.cs
- UserControlBuildProvider.cs
- ExpressionBinding.cs
- WorkflowMarkupSerializerMapping.cs
- AnnotationAdorner.cs
- LinqExpressionNormalizer.cs
- CachedBitmap.cs
- PropertyGridEditorPart.cs
- ObjectDataSourceEventArgs.cs
- RolePrincipal.cs
- InvalidateEvent.cs
- AspCompat.cs
- InlineObject.cs
- AssemblyCache.cs
- MemberMaps.cs
- DataPagerFieldCollection.cs
- CodeCatchClauseCollection.cs
- ListBindableAttribute.cs
- BufferedWebEventProvider.cs
- StatusBar.cs
- KeyTimeConverter.cs
- XmlAttributeOverrides.cs
- As.cs
- MissingMethodException.cs
- HashSet.cs
- SourceFilter.cs
- SystemIPInterfaceStatistics.cs
- AutomationIdentifierGuids.cs
- HtmlSelectionListAdapter.cs
- WeakRefEnumerator.cs
- WebPartCloseVerb.cs
- ScrollChrome.cs
- MenuEventArgs.cs
- MeasurementDCInfo.cs
- BulletedList.cs
- Object.cs
- HttpCacheVaryByContentEncodings.cs
- ToolStripOverflowButton.cs
- RuntimeCompatibilityAttribute.cs