AppDomain.dotNET property provides access to .NET namespaces, classes and static class members defined in assemblies that are loaded into the given application domain.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The property is applied to the following object:
An object whose properties are the names of .NET namespaces available in the application domain. Dots in namespace names are replaced with underscores, so, for example, the System.Collections namespace is accessible as System_Collections.
Each namespace object, in its turn, contains properties that are names of classes in this namespace. Objects corresponding to classes have properties and methods that are declared as static in these classes.
This way, you can access a specific static class member using the following syntax:
Sys.Process("MyApp").AppDomain("MyApp.exe").dotNET.namespace_name.class_name.method_name(parameter1, parameter2, ...)
To learn which .NET namespaces and classes are available in an application domain, you can explore the
AppDomain.dotNET object in the Object Browser.
For examples of using the
AppDomain.dotNET property to work with .NET classes available in an application domain, see the following topics:
See also Calling Functions From .NET Assemblies.