Chapter 4 Building Classes and Assemblies with VB.NET

來源:互聯網
上載者: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 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.
CHAPTER 4
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個工作日內處理。

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