_ConstructorInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _ConstructorInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _ConstructorInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) _ConstructorInfo.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) Method

定义

提供对某一对象公开的属性和方法的访问。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 *  * 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 UInt32 UInt32 UInt32

标识成员。Identifies the member.

riid
Guid Guid Guid Guid

留待将来使用。Reserved for future use. 必须为 IID_NULL。Must be IID_NULL.

lcid
UInt32 UInt32 UInt32 UInt32

要在其中解释参数的区域设置上下文。The locale context in which to interpret arguments.

wFlags
Int16 Int16 Int16 Int16

描述调用的上下文的标志。Flags describing the context of the call.

pDispParams
IntPtr IntPtr IntPtr IntPtr

指向一个结构的指针,该结构包含一个自变量数组、一个命名自变量的 DISPID 自变量数组和数组中元素数的计数。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 IntPtr IntPtr IntPtr

指向要存储结果的位置的指针。Pointer to the location where the result is to be stored.

pExcepInfo
IntPtr IntPtr IntPtr IntPtr

指向一个包含异常信息的结构的指针。Pointer to a structure that contains exception information.

puArgErr
IntPtr IntPtr IntPtr 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,请参阅 MSDN 库。For more information about IDispatch::Invoke, see the MSDN Library.

适用于