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
[C#]
public object NativeObject {get;}
[C++]
public: __property Object* get_NativeObject();
[JScript]
public function get NativeObject() : Object;

Property Value

The native ADSI object.

Remarks

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.

Requirements

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

Show: