Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet141/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   137   138   139   140   141   142   143   144   ...   453
clr.AddReferenceToFile(
AssemblyFilename
[, 
AssemblyFilename
...]
): Adds a reference 
to the .NET assembly by passing a filename. You may supply multiple filenames to load multiple 
assemblies. IronPython looks for the assembly using the 
sys.path
attribute. Consequently, you 
can partially control which version of the assembly you get by controlling the 
sys.path
attri-
bute. However, if more than one assembly has the correct filename, IronPython doesn’t guar-
antee which version of the assembly will load. You can use the 
clr.AddReferenceByName()
method to better control which version of the assembly loads.


clr.AddReferenceToFileAndPath(
AssemblyPathAndFilename
[, 
AssemblyPathAndFilename
 ...])
: Performs about the same task as the 
clr 
.AddReferenceToFile()
method. However, in this case, you must provide an absolute path 
to the assembly you want to load, which means that you have better control over which assem-
bly version loads. This method automatically adds the assembly path to 
sys.path
for you.
548592c07.indd 124
2/25/10 9:44:27 AM
www.finebook.ir


Importing the .NET Framework Assemblies
 

 
125


clr.AddReferenceByName(
AssemblyName
, Version=
VersionNumber
, Culture= 
CultureIdentifier
|neutral, PublicKeyToken=
TokenValue
)
: Adds an assembly refer-
ence based on assembly specifics normally found in the GAC. You must supply values that fully 
define the assembly. For example, to import the .NET Framework 2.0 version of the System.
Xml assembly, you would supply: 
‘System.Xml, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089‘
.



Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   137   138   139   140   141   142   143   144   ...   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