Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet181/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   177   178   179   180   181   182   183   184   ...   453
using Late Binding
When using late binding, you create a connection to the COM component at run time by creating
a new object or reusing a running object. Some developers prefer this kind of access because it’s less 
error prone than early binding where you might not know about runtime issues during design time. 
Here are some other reasons that you might use late binding.
➤➤
More connectivity options: You can use late binding to create a connection to a new instance 
of a COM component (see the “Performing Late Binding Using Activator.CreateInstance()” 
section of this chapter) or a running instance of the COM component (see the “Performing 
Late Binding Using Marshal.GetActiveObject()” section of the chapter).


Fewer modules: When you use late binding, you don’t need an interop assembly for each 
of the COM components you want to use, which decreases the size and complexity of your 
application.


Better version independence: Late binding relies on registry entries to make the connection. 
Consequently, when Windows looks up the string you use to specify the application, it looks 
for any application that satisfies that string. If you specify the Microsoft Excel 9.0 Object 
Library COM component (Office 2000 specific), Windows will substitute any newer version 
of Office on the system for the component you requested.


Fewer potential compatibility issues: Some environments don’t work well with interop assem-
blies. For example, you might be using IronPython within a Web-based application. In this 
case, the client machine would already have to have the interop assembly, too, and it prob-
ably doesn’t. In this case, using late binding allows your application to continue working 
when early binding would fail.
548592c09.indd 166
2/24/10 12:48:17 PM
www.finebook.ir



Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   177   178   179   180   181   182   183   184   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish