SetAssemblyReference – PB Docs 150


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
empty string if the argument is an empty string.

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.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x