DirectoryEntry.NativeObject DirectoryEntry.NativeObject DirectoryEntry.NativeObject DirectoryEntry.NativeObject Property


取得原生 Active Directory Service Interfaces (ADSI) 物件。Gets the native Active Directory Service Interfaces (ADSI) object.

 property System::Object ^ NativeObject { System::Object ^ get(); };
public object NativeObject { get; }
member this.NativeObject : obj
Public ReadOnly Property NativeObject As Object


原生 ADSI 物件。The native ADSI object.


當您想要使用 COM 介面時,請使用這個屬性(property)來轉換原生 Active Directory Domain Services 物件,它會 Iad 介面。Use this property to cast the native Active Directory Domain Services object, which implements the IADs interface, when you want to use a COM interface. 如需有關 Iad 介面的詳細資訊,請參閱iad一文。For more information about the IADs interface, see the IADs article.

這個物件適用于無法以System.DirectoryServices類別單獨完成的 advanced 案例。This object is for advanced scenarios that cannot be accomplished with the System.DirectoryServices classes alone. 若要使用它,您必須從 Iad 系列匯入其中一個 COM 介面,然後將此屬性轉換成該介面。To use it, you need to import one of the COM interfaces from the IADs family, then cast this property to that interface.