_Attribute.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.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code and should not be called from managed code. 如需的詳細IDispatch::Invoke資訊,請參閱 MSDN Library。For more information about IDispatch::Invoke, see the MSDN Library.

適用於