MethodBase._MethodBase.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) Metodo
Definizione
Fornisce l'accesso a proprietà e metodi esposti da un oggetto.Provides access to properties and methods exposed by an object.
virtual void System.Runtime.InteropServices._MethodBase.Invoke(System::UInt32 dispIdMember, Guid % riid, System::UInt32 lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr) = System::Runtime::InteropServices::_MethodBase::Invoke;
void _MethodBase.Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
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) Implements _MethodBase.Invoke
Parametri
- dispIdMember
- UInt32
Identifica il membro.Identifies the member.
- riid
- Guid
Riservato per usi futuri.Reserved for future use. Deve essere IID_NULL.Must be IID_NULL.
- lcid
- UInt32
Contesto di impostazioni locali all'interno del quale devono essere interpretati gli argomenti.The locale context in which to interpret arguments.
- wFlags
- Int16
Flag che descrivono il contesto della chiamata.Flags describing the context of the call.
- pDispParams
- IntPtr
Puntatore a una struttura contenente una matrice di argomenti, una matrice di DISPID per argomenti denominati e i conteggi del numero di elementi nelle matrici.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
Puntatore alla posizione in cui deve essere archiviato il risultato.Pointer to the location where the result is to be stored.
- pExcepInfo
- IntPtr
Puntatore a una struttura contenente informazioni sull'eccezione.Pointer to a structure that contains exception information.
- puArgErr
- IntPtr
Indice del primo argomento che contiene un errore.The index of the first argument that has an error.
Implementazioni
Eccezioni
L'accesso ad associazione tardiva usando l'interfaccia COM IDispatch
non è supportato.Late-bound access using the COM IDispatch
interface is not supported.
Commenti
Questo metodo consente di accedere alle classi gestite da codice non gestito e non deve essere chiamato dal codice gestito.This method is for access to managed classes from unmanaged code, and should not be called from managed code. Per ulteriori informazioni su IDispatch::Invoke
, vedere MSDN Library.For more information about IDispatch::Invoke
, see the MSDN Library.