The Import Actions from .NET Assembly wizard allows you to import action definitions from a .NET assembly. Using introspection of a .NET assembly, this wizard will create an action for each method, property and public field you checked in step 3 of this wizard. The properties of the imported actions depend on the type of the assembly item you select, as explained below.

All actions created with this mechanism are created with the Function property set to its default, that is, No.

Constructors as Actions

For each .NET constructor selected in the wizard, a new action is created with the following properties:

Name

<.NET class name>Create

Parameters

One output parameter is added, besides the ones natively declared in the Constructor. This new parameter represents the created object and has the following properties:

Type: Object. For more information about this data type, see Data Types.

Methods as Actions

For each .NET method selected in the wizard, a new action is created with the following properties:

Name

<.NET class name><.NET method name>

Parameters

For each input or output parameter declared in this method, an input or output parameter is created as follows:

Data type: OutSystems' data type that corresponds to the .NET data type. For more information, see Microsoft .NET and Data Types.

In the following situations, Integration Studio creates more parameters than the method defines, in order to correctly map the method signature into the action definition.

  1. If the method is non-static, then an extra input parameter is created as follows:

Data type: Object. For more information about this data type, see Data Types.

This parameter holds the object where this non-static method will be invoked.

  1. If the method has a return value, then an extra output parameter is created as follows:

Data type: OutSystems' data type that corresponds to the .NET data type. For more information, see Microsoft .NET and Data Types.

This parameter holds the result of this method.

  1. If the method has a reference parameter, then two input and output parameters are created as follows:

Type: Input parameter

Data type: OutSystems' data type that corresponds to the .NET data type. For more information, see Microsoft .NET and Data Types.

Type: Output parameter

Data type: OutSystems' data type that corresponds to the .NET data type. For more information, see Microsoft .NET and Data Types.

Properties as Actions

For each .NET property selected in the wizard, two new actions might be created with the following properties:

Name

<.NET class name><.NET property name>Get

This action is created only if the property is readable.

Parameters

The following parameters are created:

Type: Input parameter

Data type: Object. For more information about this data type, see Data Types.

This parameter should hold the object where the property will be invoked.

Type: Output parameter

Data type: OutSystems' data type that corresponds to the .NET data type. For more information, see Microsoft .NET and Data Types.

Name

<.NET class name><.NET property name>Set

This action is created only if the property is writable.

Parameters

The following parameters are created:

Type: Input parameter

Data type: Object. For more information about this data type, see Data Types.

This parameter should hold the object where the property will be invoked.

Type: Output parameter

Data type: OutSystems' data type that corresponds to the .NET data type. For more information, see Microsoft .NET and Data Types.

Public Fields as Actions

For each .NET public field selected in the wizard, two new actions are created with the following properties:

Name

<.NET class name><.NET field name>Get

Parameters

The following parameters are created:

Type: Input Parameter

Data type: Object. For more information about this data type, see Data Types.

This parameter should hold the object from which the field will be obtained.

Type: Output Parameter

Data type: OutSystems' data type that corresponds to the .NET data type. For more information, see Microsoft .NET and Data Types.

Name

<.NET class name><.NET field name>Set

Parameters

The following parameters are created:

Type: Input Parameter

Data type: Object. For more information about this data type, see Data Types.

This parameter should hold the object from which the field will be obtained.

Type: Output Parameter

Data type: OutSystems' data type that corresponds to the .NET data type. For more information, see Microsoft .NET and Data Types.

The "Import Actions from .NET Assembly" wizard has the necessary mechanisms to avoid name clashing. Also, by default, the icon associated with actions imported from a .NET assembly is .

In the Action editor you can see the details about the Import Operation.

See Also

Import Actions from .Net Assembly Wizard | Microsoft .NET and Data Types | Data Types