This documentation is archived and is not being maintained.

DirectoryEntry.NativeObject Property

Gets the native Active Directory Service Interfaces (ADSI) object.

[Visual Basic]
Public ReadOnly Property NativeObject As Object
public object NativeObject {get;}
public: __property Object* get_NativeObject();
public function get NativeObject() : Object;

Property Value

The native ADSI object.


Use this property to cast the native Active Directory object, which implements the IADs interface, when you want to use a COM interface.

This object is for advanced scenarios that cannot be accomplished with the System.DirectoryServices classes alone. To use it, you need to import one of the IADs-family COM interfaces and then cast this property to that interface.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

DirectoryEntry Class | DirectoryEntry Members | System.DirectoryServices Namespace