Loading Assemblies

One of the capabilities I have been referring to is the ability to load an assembly at runtime, then discover and invoke operations on that assembly. One of the compelling applications of this technology is the new thin client programming. Thin client is coming to mean automatic deployment of updates of Windows applications over the Internet. (Refer to Chapter 10 for more information on this subject.)

Although you could load any assembly and randomly search for members, in practice you will probably have an idea of what you are looking for. Either way, the code for loading an assembly and invoking members is pretty much the same. You will need to load the assembly, create an instance of a type in that assembly, and bind and ...

Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.