Share via


DataViewBrowseObject.IReflect.InvokeMember Method

Invokes the specified member using the specified binding constraints and matching the specified argument list, modifiers, and culture.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Private 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 Implements IReflect.InvokeMember
Object IReflect.InvokeMember(
    string name,
    BindingFlags invokeAttr,
    Binder binder,
    Object target,
    Object[] args,
    ParameterModifier[] modifiers,
    CultureInfo culture,
    string[] namedParameters
)
private:
virtual Object^ InvokeMember(
    String^ name, 
    BindingFlags invokeAttr, 
    Binder^ binder, 
    Object^ target, 
    array<Object^>^ args, 
    array<ParameterModifier>^ modifiers, 
    CultureInfo^ culture, 
    array<String^>^ namedParameters
) sealed = IReflect::InvokeMember
private abstract InvokeMember : 
        name:string * 
        invokeAttr:BindingFlags * 
        binder:Binder * 
        target:Object * 
        args:Object[] * 
        modifiers:ParameterModifier[] * 
        culture:CultureInfo * 
        namedParameters:string[] -> Object  
private override InvokeMember : 
        name:string * 
        invokeAttr:BindingFlags * 
        binder:Binder * 
        target:Object * 
        args:Object[] * 
        modifiers:ParameterModifier[] * 
        culture:CultureInfo * 
        namedParameters:string[] -> Object
JScript does not support explicit interface implementations.

Parameters

  • name
    Type: System.String

    The name of the constructor, method, property, or field member to invoke, or an empty string to invoke the default member. For IDispatch members, a string representing the DispID, for example "[DispID=3]".

  • invokeAttr
    Type: System.Reflection.BindingFlags

    A bitmask made up 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 |BindingFlags.Static are used.

  • binder
    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; or a null reference to use the DefaultBinder. Note that explicitly defining a Binder object may be required for successfully invoking method overloads with variable arguments.

  • args
    Type: array<System.Object[]

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

  • modifiers
    Type: array<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 processes this parameter only when calling a COM component.

  • culture
    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; or nulla null reference (Nothing in Visual Basic) to use the current thread's CultureInfo.

  • namedParameters
    Type: array<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.

Implements

IReflect.InvokeMember(String, BindingFlags, Binder, Object, array<Object[], array<ParameterModifier[], CultureInfo, array<String[])

.NET Framework Security

See Also

Reference

DataViewBrowseObject Class

Microsoft.VisualStudio.Data.Framework Namespace