Edit

Share via


ConstructorInvoker.Invoke Method

Definition

Overloads

Invoke()

Invokes the constructor.

Invoke(Object)

Invokes the constructor using the specified arguments.

Invoke(Span<Object>)

Invokes the constructor using the specified arguments.

Invoke(Object, Object)

Invokes the constructor using the specified arguments.

Invoke(Object, Object, Object)

Invokes the constructor using the specified arguments.

Invoke(Object, Object, Object, Object)

Invokes the constructor using the specified arguments.

Invoke()

Source:
ConstructorInvoker.cs
Source:
ConstructorInvoker.cs

Invokes the constructor.

public:
 System::Object ^ Invoke();
public object Invoke ();
member this.Invoke : unit -> obj
Public Function Invoke () As Object

Returns

An instance of the class associated with the constructor.

Exceptions

The type that declares the method is an open generic type.

An incorrect number of arguments was provided.

The calling convention or signature is not supported.

Applies to

Invoke(Object)

Source:
ConstructorInvoker.cs
Source:
ConstructorInvoker.cs

Invokes the constructor using the specified arguments.

public:
 System::Object ^ Invoke(System::Object ^ arg1);
public object Invoke (object? arg1);
member this.Invoke : obj -> obj
Public Function Invoke (arg1 As Object) As Object

Parameters

arg1
Object

The first argument for the invoked method.

Returns

An instance of the class associated with the constructor.

Exceptions

The arguments do not match the signature of the invoked constructor.

Applies to

Invoke(Span<Object>)

Source:
ConstructorInvoker.cs
Source:
ConstructorInvoker.cs

Invokes the constructor using the specified arguments.

public:
 System::Object ^ Invoke(Span<System::Object ^> arguments);
public object Invoke (Span<object?> arguments);
member this.Invoke : Span<obj> -> obj
Public Function Invoke (arguments As Span(Of Object)) As Object

Parameters

arguments
Span<Object>

The arguments for the invoked constructor.

Returns

An instance of the class associated with the constructor.

Exceptions

The arguments do not match the signature of the invoked constructor.

Applies to

Invoke(Object, Object)

Source:
ConstructorInvoker.cs
Source:
ConstructorInvoker.cs

Invokes the constructor using the specified arguments.

public:
 System::Object ^ Invoke(System::Object ^ arg1, System::Object ^ arg2);
public object Invoke (object? arg1, object? arg2);
member this.Invoke : obj * obj -> obj
Public Function Invoke (arg1 As Object, arg2 As Object) As Object

Parameters

arg1
Object

The first argument for the invoked method.

arg2
Object

The second argument for the invoked method.

Returns

An instance of the class associated with the constructor.

Applies to

Invoke(Object, Object, Object)

Source:
ConstructorInvoker.cs
Source:
ConstructorInvoker.cs

Invokes the constructor using the specified arguments.

public:
 System::Object ^ Invoke(System::Object ^ arg1, System::Object ^ arg2, System::Object ^ arg3);
public object Invoke (object? arg1, object? arg2, object? arg3);
member this.Invoke : obj * obj * obj -> obj
Public Function Invoke (arg1 As Object, arg2 As Object, arg3 As Object) As Object

Parameters

arg1
Object

The first argument for the invoked method.

arg2
Object

The second argument for the invoked method.

arg3
Object

The third argument for the invoked method.

Returns

An instance of the class associated with the constructor.

Applies to

Invoke(Object, Object, Object, Object)

Source:
ConstructorInvoker.cs
Source:
ConstructorInvoker.cs

Invokes the constructor using the specified arguments.

public:
 System::Object ^ Invoke(System::Object ^ arg1, System::Object ^ arg2, System::Object ^ arg3, System::Object ^ arg4);
public object Invoke (object? arg1, object? arg2, object? arg3, object? arg4);
member this.Invoke : obj * obj * obj * obj -> obj
Public Function Invoke (arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object) As Object

Parameters

arg1
Object

The first argument for the invoked method.

arg2
Object

The second argument for the invoked method.

arg3
Object

The third argument for the invoked method.

arg4
Object

The fourth argument for the invoked method.

Returns

An instance of the class associated with the constructor.

Applies to