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
- _WebProxyDataBuilder.cs
- OleDbSchemaGuid.cs
- WebPartEventArgs.cs
- IUnknownConstantAttribute.cs
- SettingsPropertyValue.cs
- ServiceOperationParameter.cs
- SelectorAutomationPeer.cs
- Transform3DGroup.cs
- RuntimeEnvironment.cs
- CriticalExceptions.cs
- BasicExpressionVisitor.cs
- UnhandledExceptionEventArgs.cs
- WebServiceHost.cs
- ModelPerspective.cs
- AuthenticationSection.cs
- CacheRequest.cs
- FragmentNavigationEventArgs.cs
- DetailsViewRowCollection.cs
- HTMLTagNameToTypeMapper.cs
- DataRecordInternal.cs
- TextBlock.cs
- MenuItemAutomationPeer.cs
- OrderedDictionaryStateHelper.cs
- SessionPageStatePersister.cs
- InvalidCastException.cs
- Connector.cs
- HostAdapter.cs
- MdbDataFileEditor.cs
- ExpressionPrinter.cs
- BoundingRectTracker.cs
- UnaryNode.cs
- XmlNodeReader.cs
- AttributeCollection.cs
- SqlSupersetValidator.cs
- DetailsViewPageEventArgs.cs
- TemplateContentLoader.cs
- FormCollection.cs
- RulePatternOps.cs
- DefaultPropertyAttribute.cs
- ECDiffieHellmanCngPublicKey.cs
- PipelineModuleStepContainer.cs
- TriggerBase.cs
- Vector3DKeyFrameCollection.cs
- PrimaryKeyTypeConverter.cs
- DataSourceNameHandler.cs
- MachineKeyValidationConverter.cs
- FlowDocumentView.cs
- WorkflowEnvironment.cs
- DbConnectionInternal.cs
- ReflectTypeDescriptionProvider.cs
- XmlQueryStaticData.cs
- SecurityToken.cs
- PowerModeChangedEventArgs.cs
- NullableIntAverageAggregationOperator.cs
- CustomValidator.cs
- RecognizedPhrase.cs
- PersonalizationStateQuery.cs
- WebPartTransformerCollection.cs
- CLSCompliantAttribute.cs
- DetailsViewUpdateEventArgs.cs
- OrderedDictionaryStateHelper.cs
- RijndaelManaged.cs
- sqlnorm.cs
- odbcmetadatafactory.cs
- FileEnumerator.cs
- JobInputBins.cs
- ContentPlaceHolder.cs
- Matrix3DValueSerializer.cs
- PropertyEmitterBase.cs
- MediaContext.cs
- EventHandlerList.cs
- XmlSerializableReader.cs
- VerticalAlignConverter.cs
- WebPartPersonalization.cs
- dataobject.cs
- PublisherMembershipCondition.cs
- Preprocessor.cs
- ImagingCache.cs
- PriorityBinding.cs
- ComNativeDescriptor.cs
- NativeMethods.cs
- HtmlMeta.cs
- ReaderWriterLock.cs
- BamlWriter.cs
- CodeStatementCollection.cs
- ErrorInfoXmlDocument.cs
- SimpleType.cs
- Rotation3DAnimationBase.cs
- DefaultPerformanceCounters.cs
- SectionVisual.cs
- GifBitmapEncoder.cs
- XPathAncestorQuery.cs
- Int32Converter.cs
- JsonMessageEncoderFactory.cs
- SmiGettersStream.cs
- ThreadAbortException.cs
- DbMetaDataFactory.cs
- DependencySource.cs
- ObjectReaderCompiler.cs
- CellParaClient.cs