SetAssemblyReference
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.
Syntax
Int SetAssemblyReference(string assemblyFullPath)
Argument | Description |
---|---|
assemblyFullPath | String. A semicolon-separated list of file names. Specify the full file name with its extension. You can use a relative path if the assembly is in the same directory with the current application. Otherwise, you must use an absolute path. The referenced assembly list will be set to an |
Returns
Integer. Returns 1 if all files in the list are
added successfully. If an error occurs, it returns -1. If any argument�s value is
null, it returns null.
Usage
After the function is invoked successfully at runtime, types in the
referenced assembly can be consumed in PowerBuilder .NET.