Click to Rate and Give Feedback
MSDN
MSDN Library

  Switch on low bandwidth view
This page is specific to
.NET Framework 3.0

Other versions are also available for the following:
 Collapse AllExpand All      Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: J# Code: JScript 
IDispatch Interface

The IDispatch interface exposes objects, methods and properties to programming tools and other applications that support Automation. COM components implement the IDispatch interface to enable access by Automation clients, such as Visual Basic.

For an example on how to access a COM object through the IDispatch interface, see Implementing the IDispatch Interface.

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDispatch Methods

Description

IDispatch::GetTypeInfoCount

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

IDispatch::GetTypeInfo

Gets the type information for an object.

IDispatch::GetIDsOfNames

Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs.

IDispatch::Invoke

Provides access to properties and methods exposed by an object.

IDispatch is located in the Oleauto.h header file on 32-bit systems, and in Dispatch.h on 16-bit and Macintosh systems.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker