Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

_Type.InvokeMember Method (String, BindingFlags, Binder, Object, Object(), ParameterModifier(), CultureInfo, String())

Provides COM objects with version-independent access to the Type.InvokeMember method.

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

Function InvokeMember ( _
	name As String, _
	invokeAttr As BindingFlags, _
	binder As Binder, _
	target As Object, _
	args As Object(), _
	modifiers As ParameterModifier(), _
	culture As CultureInfo, _
	namedParameters As String() _
) As Object


Type: System.String

The String containing the name of the constructor, method, property, or field member to invoke.


An empty string ("") to invoke the default member.


For IDispatch members, a string representing the DispID, for example "[DispID=3]".

Type: System.Reflection.BindingFlags

A bitmask comprised of one or more BindingFlags that specify how the search is conducted. The access can be one of the BindingFlags such as Public, NonPublic, Private, InvokeMethod, GetField, and so on. The type of lookup need not be specified. If the type of lookup is omitted, BindingFlags.Public | BindingFlags.Instance will apply.

Type: System.Reflection.Binder

A Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.


Nothing, to use the DefaultBinder.

Type: System.Object

The Object on which to invoke the specified member.

Type: System.Object()

An array containing the arguments to pass to the member to invoke.

Type: System.Reflection.ParameterModifier()

An array of ParameterModifier objects representing the attributes associated with the corresponding element in the args array. A parameter's associated attributes are stored in the member's signature. The default binder does not process this parameter.

Type: System.Globalization.CultureInfo

The CultureInfo object representing the globalization locale to use, which may be necessary for locale-specific conversions, such as converting a numeric String to a Double.


Nothing to use the current thread's CultureInfo.

Type: System.String()

An array containing the names of the parameters to which the values in the args array are passed.

Return Value

Type: System.Object
An Object representing the return value of the invoked member.

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The Type.InvokeMember method invokes the specified member, using the specified binding constraints and matching the specified argument list, modifiers, and culture.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft