PropertyInfo._PropertyInfo.Invoke Metodo

Definizione

Fornisce l'accesso a proprietà e metodi esposti da un oggetto.

 virtual void System.Runtime.InteropServices._PropertyInfo.Invoke(System::UInt32 dispIdMember, Guid % riid, System::UInt32 lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr) = System::Runtime::InteropServices::_PropertyInfo::Invoke;
void _PropertyInfo.Invoke (uint dispIdMember, ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
abstract member System.Runtime.InteropServices._PropertyInfo.Invoke : uint32 * Guid * uint32 * int16 * nativeint * nativeint * nativeint * nativeint -> unit
override this.System.Runtime.InteropServices._PropertyInfo.Invoke : uint32 * Guid * uint32 * int16 * nativeint * nativeint * nativeint * nativeint -> unit
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 _PropertyInfo.Invoke

Parametri

dispIdMember
UInt32

Identifica il membro.

riid
Guid

Riservato per usi futuri. Deve essere IID_NULL.

lcid
UInt32

Contesto di impostazioni locali all'interno del quale devono essere interpretati gli argomenti.

wFlags
Int16

Flag che descrivono il contesto della chiamata.

pDispParams
IntPtr

nativeint

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.

pVarResult
IntPtr

nativeint

Puntatore alla posizione in cui deve essere archiviato il risultato.

pExcepInfo
IntPtr

nativeint

Puntatore a una struttura contenente informazioni sull'eccezione.

puArgErr
IntPtr

nativeint

Indice del primo argomento che contiene un errore.

Implementazioni

Eccezioni

L'accesso ad associazione tardiva usando l'interfaccia COM IDispatch non è supportato.

Commenti

Questo metodo è per l'accesso alle classi gestite da codice non gestito e non deve essere chiamato da codice gestito. Per altre informazioni, vedere IDispatch::Invoke.

Si applica a