Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / InvalidComObjectException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- HTTPNotFoundHandler.cs
- XmlDocumentType.cs
- MessageBox.cs
- bidPrivateBase.cs
- BitmapFrameEncode.cs
- XLinq.cs
- SerializationFieldInfo.cs
- Border.cs
- CompatibleIComparer.cs
- GlyphsSerializer.cs
- DSASignatureFormatter.cs
- ReturnEventArgs.cs
- DeploymentExceptionMapper.cs
- PersonalizableAttribute.cs
- CustomAttributeBuilder.cs
- WindowsTokenRoleProvider.cs
- FontStretchConverter.cs
- WhitespaceSignificantCollectionAttribute.cs
- ComponentDispatcherThread.cs
- RequestValidator.cs
- AQNBuilder.cs
- ControlParameter.cs
- PageHandlerFactory.cs
- SpecularMaterial.cs
- PrincipalPermissionMode.cs
- XmlSchemaAppInfo.cs
- Boolean.cs
- VerificationException.cs
- BooleanExpr.cs
- WebPartRestoreVerb.cs
- StagingAreaInputItem.cs
- MissingManifestResourceException.cs
- ContentDisposition.cs
- WebBrowserUriTypeConverter.cs
- DataGridGeneralPage.cs
- ConnectionManagementElement.cs
- XmlSchemaException.cs
- CapabilitiesSection.cs
- PageRanges.cs
- CellRelation.cs
- FocusChangedEventArgs.cs
- HandoffBehavior.cs
- CssClassPropertyAttribute.cs
- TextSelection.cs
- Schema.cs
- TypeUsage.cs
- XmlResolver.cs
- CompilationRelaxations.cs
- TemplateAction.cs
- ByteStreamGeometryContext.cs
- objectquery_tresulttype.cs
- XmlCharCheckingWriter.cs
- HttpApplication.cs
- SetStoryboardSpeedRatio.cs
- TimeSpanConverter.cs
- ImageField.cs
- WSFederationHttpSecurityElement.cs
- XmlUtilWriter.cs
- activationcontext.cs
- AppDomainProtocolHandler.cs
- WorkItem.cs
- ContextBase.cs
- XmlAttributeCollection.cs
- NullableDecimalSumAggregationOperator.cs
- CodeLinePragma.cs
- CodeRegionDirective.cs
- OdbcUtils.cs
- FormsAuthenticationConfiguration.cs
- ProfileManager.cs
- ApplyHostConfigurationBehavior.cs
- AutomationIdentifier.cs
- CursorConverter.cs
- RegistryPermission.cs
- XNodeValidator.cs
- EntryPointNotFoundException.cs
- SqlCrossApplyToCrossJoin.cs
- BamlRecordWriter.cs
- TextModifier.cs
- TextBoxBase.cs
- XamlVector3DCollectionSerializer.cs
- TemplatedControlDesigner.cs
- XamlTemplateSerializer.cs
- MetadataArtifactLoaderFile.cs
- ParameterDataSourceExpression.cs
- RelationshipFixer.cs
- DispatcherOperation.cs
- Registry.cs
- ObjectItemNoOpAssemblyLoader.cs
- InputBindingCollection.cs
- NetworkInterface.cs
- FrameSecurityDescriptor.cs
- Matrix3DValueSerializer.cs
- TrackingExtract.cs
- WasAdminWrapper.cs
- Matrix.cs
- CqlWriter.cs
- MailDefinition.cs
- Timeline.cs
- InputBinding.cs
- WebBrowserNavigatedEventHandler.cs