RunOnClient Property

Sets whether a .NET object that is defined by a variable is run on the Microsoft Dynamics NAV Windows client or Microsoft Dynamics NAV Server.

Applies To

Variables of the DotNet data type.

Property Values

Yes if you want to run the .NET object on the Microsoft Dynamics NAV Windows client; otherwise, No. The default is No.

Note

The Microsoft Dynamics NAV Web client does not support running the .NET object on the client.

Remarks

The RunOnClient property is part of .NET interoperability in Microsoft Dynamics NAV 2016 that you can use to expand your solution using .NET assemblies. With .NET interoperability, you can call methods and properties in a class of a .NET assembly from C/AL code by defining a variable for the class. When you set the RunOnClient property to Yes, then the class instance that is defined by the variable is instantiated on the Microsoft Dynamics NAV Windows client.

Note

If you set the RunOnClient property to Yes, then the .NET assembly that is used by the variable must be installed on the machine that is running the Microsoft Dynamics NAV Windows client.

See Also

Tasks

How to: Call .NET Framework Types From C/AL Code

Concepts

Extending Microsoft Dynamics NAV Using Microsoft .NET Framework Interoperability