Chapter 4 Building Classes and Assemblies with VB.NET

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 well 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 you 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 an assembly, which often has a .DLL exten-sion.
You can use the classes from the class library much like
you 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.
Building Classes and Assemblies with VB.NET


E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >



如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。