Changes PB assembly files to the reference list of the current application at runtime. The difference with AddAssemblyReference is that all PB assemblies in the reference list will be replaced after invoking the function.
Int SetAssemblyReference(string assemblyFullPath)
Argument | Description |
---|---|
assemblyFullPath | String. A semicolon-separated list of file names. Specify the full file name with its extension. It can be a relative path if the assembly is in the same directory with the current application. Otherwise, it must be an absolute path. |
Integer. Returns 1 if all files in the list are successfully added. If an error occurs, it returns -1. If any argument’s value is null, it returns null.
After the function is invoked successfully at runtime, types in the referenced assembly can be consumed in PB .NET.