IFactoryService.CreateInstance Method

Definition

Creates an instance of the IFactoryService object.

Overloads

CreateInstance(String, Object[])

Instantiates an object by supplied full name.

CreateInstance<T>(String, Object[])

Instantiates an object based on the given full name.

CreateInstance(String, Object[])

Instantiates an object by supplied full name.

public:
 System::Object ^ CreateInstance(System::String ^ fullName, ... cli::array <System::Object ^> ^ arguments);
public object CreateInstance (string fullName, params object[] arguments);
abstract member CreateInstance : string * obj[] -> obj
Public Function CreateInstance (fullName As String, ParamArray arguments As Object()) As Object

Parameters

fullName
String

The full name of the type.

arguments
Object[]

An arguments used on the object.

Returns

A new object that represents an object by supplied full name.

Applies to

CreateInstance<T>(String, Object[])

Instantiates an object based on the given full name.

public:
generic <typename T>
 T CreateInstance(System::String ^ fullName, ... cli::array <System::Object ^> ^ arguments);
public T CreateInstance<T> (string fullName, params object[] arguments);
abstract member CreateInstance : string * obj[] -> 'T
Public Function CreateInstance(Of T) (fullName As String, ParamArray arguments As Object()) As T

Type Parameters

T

The type to create instance object.

Parameters

fullName
String

The full name of the type.

arguments
Object[]

An arguments used on the object.

Returns

T

A new object that represents an object based on the given full name.

Applies to