_MethodRental.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) 方法
定义
提供对某一对象公开的属性和方法的访问。Provides access to properties and methods exposed by an object.
public:
void Invoke(System::UInt32 dispIdMember, Guid % riid, System::UInt32 lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
public void Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
abstract member Invoke : uint32 * Guid * uint32 * int16 * nativeint * nativeint * nativeint * nativeint -> unit
Public Sub Invoke (dispIdMember As UInteger, ByRef riid As Guid, lcid As UInteger, wFlags As Short, pDispParams As IntPtr, pVarResult As IntPtr, pExcepInfo As IntPtr, puArgErr As IntPtr)
参数
- dispIdMember
- UInt32
成员的标识符。An identifier of a member.
- riid
- Guid
留待将来使用。Reserved for future use. 必须为 IID_NULL。Must be IID_NULL.
- lcid
- UInt32
要在其中解释自变量的区域设置上下文。The locale context in which to interpret arguments.
- wFlags
- Int16
描述调用的上下文的标志。Flags describing the context of the call.
- pDispParams
- IntPtr
指向一个结构的指针,该结构包含一个自变量数组、一个命名自变量的 DISPID 自变量数组和数组中元素数的计数。A pointer to a structure containing an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays.
- pVarResult
- IntPtr
指向结果存储位置的指针。A pointer to the location where the result will be stored.
- pExcepInfo
- IntPtr
指向一个包含异常信息的结构的指针。A pointer to a structure that contains exception information.
- puArgErr
- IntPtr
第一个出错参数的索引。The index of the first argument that has an error.
注解
此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code and should not be called from managed code. 有关详细信息,请参阅 IDispatch:: Invoke。For more information, see IDispatch::Invoke.