Compartilhar via


ConstructorInfoWrapper.Invoke Method (BindingFlags, Binder, array<Object , CultureInfo)

Invokes the constructor with the specified parameters.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Overrides Function Invoke ( _
    invokeAttr As BindingFlags, _
    binder As Binder, _
    parameters As Object(), _
    culture As CultureInfo _
) As Object
public override Object Invoke(
    BindingFlags invokeAttr,
    Binder binder,
    Object[] parameters,
    CultureInfo culture
)
public:
virtual Object^ Invoke(
    BindingFlags invokeAttr, 
    Binder^ binder, 
    array<Object^>^ parameters, 
    CultureInfo^ culture
) override
abstract Invoke : 
        invokeAttr:BindingFlags * 
        binder:Binder * 
        parameters:Object[] * 
        culture:CultureInfo -> Object  
override Invoke : 
        invokeAttr:BindingFlags * 
        binder:Binder * 
        parameters:Object[] * 
        culture:CultureInfo -> Object
public override function Invoke(
    invokeAttr : BindingFlags, 
    binder : Binder, 
    parameters : Object[], 
    culture : CultureInfo
) : Object

Parameters

  • invokeAttr
    Type: BindingFlags

    A bitmask that is a combination of 0 or more bit flags from BindingFlags. If binder is null, this parameter is assigned the value Default; thus, whatever you pass in is ignored.

  • binder
    Type: Binder

    An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects via reflection. If binder is nulla null reference (Nothing in Visual Basic), the default binder is used.

  • parameters
    Type: array<Object[]

    An argument list for the invoked method or constructor. This is an array of objects with the same number, order, and type as the parameters of the method or constructor to be invoked. If there are no parameters, this should be null.

  • culture
    Type: CultureInfo

    An instance of CultureInfo used to govern the coercion of types. If this is null, the CultureInfo for the current thread is used.

Return Value

Type: Object
Returns Object.

.NET Framework Security

See Also

Reference

ConstructorInfoWrapper Class

Invoke Overload

Microsoft.VisualStudio.Shell.Design Namespace