DotNetAdapter.GetClassNames
- Updated2025-07-21
- 1 minute(s) read
DotNetAdapter.GetClassNames
Syntax
DotNetAdapter.GetClassNames( assemblyLocationParam, assemblyPathParam, options, typeNames, displayNames)
Purpose
Retrieves the list of class names found in the given assembly.
Starting with TestStand 2024 Q4, loading assemblies from the Global Assembly Cache (GAC) is no longer supported.
Parameters
assemblyLocationParam As DotNetModuleAssemblyLocations
[In] Specifies whether the assembly is located in a file or in the Global Assembly Cache (GAC).
assemblyPathParam As String
[In] Specifies the pathname of the assembly.
options As Long
[In] Specifies one or more DotNetAdapterGetClassNamesOptions constants. Use the bitwise-OR operator to specify multiple flags.
typeNames As String Array
[Out] Returns an array that contains the fully qualified type names of all classes found in the specified assembly. This array is parallel to the displayNames array.
displayNames As String Array
[Out] Returns an array that contains the display names for all classes found in the assembly. This array is parallel to the typeNames array.
The display name for a class might be slightly different than the fully qualified name. For example, if all classes in the assembly share a common namespace, the display names do not include the namespace.