Attribute_AttributeInvoke Method
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides access to properties and methods exposed by an object.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

void _Attribute.Invoke(
	uint dispIdMember,
	[InAttribute] ref Guid riid,
	uint lcid,
	short wFlags,
	IntPtr pDispParams,
	IntPtr pVarResult,
	IntPtr pExcepInfo,
	IntPtr puArgErr
)
private:
virtual void Invoke(
	unsigned int dispIdMember,
	[InAttribute] Guid% riid,
	unsigned int lcid,
	short wFlags,
	IntPtr pDispParams,
	IntPtr pVarResult,
	IntPtr pExcepInfo,
	IntPtr puArgErr
) sealed = _Attribute::Invoke
private abstract Invoke : 
        dispIdMember:uint32 *
        riid:Guid byref *
        lcid:uint32 *
        wFlags:int16 *
        pDispParams:nativeint *
        pVarResult:nativeint *
        pExcepInfo:nativeint *
        puArgErr:nativeint -> unit
private override Invoke : 
        dispIdMember:uint32 *
        riid:Guid byref *
        lcid:uint32 *
        wFlags:int16 *
        pDispParams:nativeint *
        pVarResult:nativeint *
        pExcepInfo:nativeint *
        puArgErr:nativeint -> unit
Private Sub Invoke (
	dispIdMember As UInteger,
	<InAttribute> ByRef riid As Guid,
	lcid As UInteger,
	wFlags As Short,
	pDispParams As IntPtr,
	pVarResult As IntPtr,
	pExcepInfo As IntPtr,
	puArgErr As IntPtr
)
	Implements _Attribute.Invoke

Parameters

dispIdMember
Type:

Identifies the member.

riid
Type:

Reserved for future use. Must be IID_NULL.

lcid
Type:

The locale context in which to interpret arguments.

wFlags
Type:

Flags describing the context of the call.

pDispParams
Type:

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
Type:

Pointer to the location where the result is to be stored.

pExcepInfo
Type:

Pointer to a structure that contains exception information.

puArgErr
Type:

The index of the first argument that has an error.

Exception Condition
NotImplementedException

Late-bound access using the COM IDispatch interface is not supported.

This method is for access to managed classes from unmanaged code, and should not be called from managed code. For more information about IDispatch::Invoke, see the MSDN Library.

.NET Framework
Available since 1.1
Return to top