Interface IDispatch
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.
Assembly: Dapplo.Windows.Com.dll
Syntax
public interface IDispatch : IUnknown
Methods
|
Improve this Doc
View Source
GetIDsOfNames(ref Guid, String[], Int32, Int32, Int32[])
Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs, which can be used on subsequent calls to Invoke.
Declaration
int GetIDsOfNames(ref Guid riid, string[] rgsNames, int cNames, int lcid, int[] rgDispId)
Parameters
Type |
Name |
Description |
Guid |
riid |
|
System.String[] |
rgsNames |
|
System.Int32 |
cNames |
|
System.Int32 |
lcid |
|
System.Int32[] |
rgDispId |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetTypeInfo(Int32, Int32, out Type)
Retrieves the type information for an object, which can then be used to get the type information for an interface.
Declaration
int GetTypeInfo(int iTInfo, int lcid, out Type typeInfo)
Parameters
Type |
Name |
Description |
System.Int32 |
iTInfo |
|
System.Int32 |
lcid |
|
Type |
typeInfo |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetTypeInfoCount(out Int32)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Declaration
int GetTypeInfoCount(out int count)
Parameters
Type |
Name |
Description |
System.Int32 |
count |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Invoke(Int32, ref Guid, UInt32, UInt16, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS, out Object, ref System.Runtime.InteropServices.ComTypes.EXCEPINFO, IntPtr[])
Provides access to properties and methods exposed by an object.
Declaration
int Invoke(int dispIdMember, ref Guid riid, uint lcid, ushort wFlags, ref System.Runtime.InteropServices.ComTypes.DISPPARAMS pDispParams, out object pVarResult, ref System.Runtime.InteropServices.ComTypes.EXCEPINFO pExcepInfo, IntPtr[] pArgErr)
Parameters
Type |
Name |
Description |
System.Int32 |
dispIdMember |
|
Guid |
riid |
|
System.UInt32 |
lcid |
|
System.UInt16 |
wFlags |
|
System.Runtime.InteropServices.ComTypes.DISPPARAMS |
pDispParams |
|
System.Object |
pVarResult |
|
System.Runtime.InteropServices.ComTypes.EXCEPINFO |
pExcepInfo |
|
IntPtr[] |
pArgErr |
|
Returns
Type |
Description |
System.Int32 |
|