Dynamically Loaded Assemblies
At runtime you can dynamically change windows, visual objects, menus,
and other objects defined in different PB assemblies using the three new system functions in
PowerBuilder .NET: AddAssemblyReference, SetAssemblyReference, and GetAssemblyReference.
These system functions enable you to add a reference at runtime to a
PowerBuilder assembly deployed by PowerBuilder .NET. After you add a reference, all
types defined in it can be consumed at runtime. You cannot use types in the referenced
assembly to define a variable, a return value, or a parameter. Types are typically used
in some system functions as a string parameter where the value is the datatype you want
Adds new PB assembly files to the reference list of the current application at runtime.
Changes PB assembly files to the reference list of the current application at runtime. SetAssemblyReference differs from AddAssemblyReference in that all PB assemblies in the reference list are replaced after invoking the function.
Gets valid PB assembly files from the reference list of the current application at runtime.
- Working with Dynamically Loaded Assemblies
Examples of working with dynamically loaded assemblies.