[IronPython] A help with an Active Directory object please.

Sanghyeon Seo sanxiyn at gmail.com
Sat Oct 20 15:37:49 CEST 2007

2007/10/20, Vizcayno Tamparantan <vizcaynot at gmail.com>:
> >>> import clr
> >>> clr.AddReferenceToFile("activedsNET.dll")  #Seems not be problem here
> >>> dir(activedsNET)
> Traceback (most recent call last):
>   File , line 0, in ##245
> NameError: name 'activedsNET' is not defined
> >>> dir()
> ['__builtins__', '__doc__', '__name__', 'clr', 'sys']  #ActivedsNET is not
> showed

Adding the reference and importing the namespace are separate steps.
Therefore, to use System.Xml namespace contained in System.Xml.dll,
you do:

import clr
import System.Xml

Referenced assemblies may contain multiple namespaces.

Seo Sanghyeon

More information about the Ironpython-users mailing list