Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MessageSmuggler.cs
- ArglessEventHandlerProxy.cs
- DupHandleConnectionReader.cs
- KoreanCalendar.cs
- Page.cs
- LowerCaseStringConverter.cs
- SqlBuffer.cs
- SignedXml.cs
- BypassElementCollection.cs
- TreeIterator.cs
- Transform3DCollection.cs
- FileLogRecordHeader.cs
- querybuilder.cs
- CodeCastExpression.cs
- ObjectSet.cs
- SettingsAttributes.cs
- SecurityResources.cs
- SimpleApplicationHost.cs
- RepeaterItemCollection.cs
- ObjectReferenceStack.cs
- SqlConnectionFactory.cs
- Set.cs
- Int64KeyFrameCollection.cs
- CursorEditor.cs
- CodeRemoveEventStatement.cs
- SecurityStandardsManager.cs
- OracleParameterBinding.cs
- DeferredTextReference.cs
- HtmlTitle.cs
- DataShape.cs
- DBConnection.cs
- FixedSchema.cs
- ThicknessAnimationBase.cs
- InternalUserCancelledException.cs
- Overlapped.cs
- TimeoutException.cs
- XpsSerializerWriter.cs
- HealthMonitoringSectionHelper.cs
- UnaryNode.cs
- ErrorLog.cs
- StringFreezingAttribute.cs
- SystemIPInterfaceStatistics.cs
- PersonalizationStateQuery.cs
- WebPartDeleteVerb.cs
- IntPtr.cs
- PriorityQueue.cs
- DateTimeUtil.cs
- BuildProviderUtils.cs
- EditorZone.cs
- SamlNameIdentifierClaimResource.cs
- WSFederationHttpBindingElement.cs
- SafeNativeMethods.cs
- ServiceModelSectionGroup.cs
- Decoder.cs
- CopyNamespacesAction.cs
- SweepDirectionValidation.cs
- ListControl.cs
- SolidBrush.cs
- DetailsViewModeEventArgs.cs
- ListViewContainer.cs
- FlowDocumentPage.cs
- DependencyPropertyKey.cs
- ContractAdapter.cs
- CodeValidator.cs
- IdentityReference.cs
- TreeNodeClickEventArgs.cs
- TemplateControlBuildProvider.cs
- CodeConstructor.cs
- MediaElementAutomationPeer.cs
- EngineSiteSapi.cs
- WsdlHelpGeneratorElement.cs
- RuleInfoComparer.cs
- SmtpMail.cs
- DataGridCaption.cs
- WindowsListViewScroll.cs
- CellParagraph.cs
- MeshGeometry3D.cs
- FormsIdentity.cs
- InternalMappingException.cs
- SpeechUI.cs
- DataControlFieldCell.cs
- SystemResourceKey.cs
- DES.cs
- FileChangesMonitor.cs
- StateItem.cs
- DefaultWorkflowTransactionService.cs
- HwndSourceKeyboardInputSite.cs
- FileDialogCustomPlace.cs
- DataGridViewBand.cs
- ClosureBinding.cs
- _HeaderInfoTable.cs
- UnitySerializationHolder.cs
- AnimationException.cs
- ManagementNamedValueCollection.cs
- GenericUriParser.cs
- RuntimeArgumentHandle.cs
- AspNetPartialTrustHelpers.cs
- DataBoundControlParameterTarget.cs
- TemplatePagerField.cs
- NamespaceEmitter.cs