| Purpose | The NetClient object represents an instance of a Microsoft .Net class. |
| Parents | NetClient, NetType, Root |
| Children | NetClient, Timer |
Description
The NetClient object represents an instance of a .Net class.
Normally, you create a NetClient object using the New method. For example:
⎕USING ←'System'
DT1←DateTime.New 2002 4 30
DT1.Type
NetClient
If, for any reason, you are unable to use the New method, you may create a NetClient object using ⎕WC. In this case, the ClassName property specifies the full name of the .Net class, and the ConstructorArgs property specifies the arguments for the constructor function if required.
⎕USING ←'System'
'DT2'⎕WC'NETCLIENT' 'System.DateTime'(1949 4 30)
DT2.(Type ClassName ConstructorArgs)
NetClient System.DateTime 1949 4 30