Chapter 4 building Classes and assemblies with vb.net
Source: Internet
Author: User
Building Classes and
Assemblies with vb.net
During the last three or so years, most VB developers have
Spent a great percentage of their time building COM compo-nents.
These components are used as the Middle-tier compo-nents
In N-tier systems. The benefits of building N-tier
Applications are-known, and include:
Code Reuse
elimination of many or all distribution headaches
encapsulation of business logic to control business
Processes and access to databases
Not surprisingly, vb.net lets your build components, but
They are no longer COM components. COM components
Have certain elements such as class IDs (s), type
libraries, and interface IDs (s). Each class in a COM com-ponent
has to support IUnknown and IDispatch.
VB.net refers to one or more classes compiled into a file as
A class library, rather than a COM component. Class Libraries
are compiled into a assembly, which often has a. DLL exten-sion.
You can use the classes from the class library
You are would the classes from a COM component:you instanti-ate
The objects in the client application and then call Proper-ties
and methods and respond to events. However, assemblies
are not COM components; Instead, they are. NET assemblies.
CHAPTER 4
Building Classes and assemblies with vb.net
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.