DirectoryEntry コンストラクタ ()
アセンブリ: System.DirectoryServices (system.directoryservices.dll 内)


- DirectoryServicesPermission Demand

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DirectoryEntry コンストラクタ (String)
アセンブリ: System.DirectoryServices (system.directoryservices.dll 内)


DirectoryEntry オブジェクトを指定したパスのディレクトリ エントリにバインドし、そのノードの Children プロパティで指定される各子エントリの Path プロパティを出力するコード例を次に示します。
Public Class PrintChildren 'Entry point which delegates to C-style main Private Function. Public Overloads Shared Sub Main() Main(System.Environment.GetCommandLineArgs()) End Sub Overloads Public Shared Sub Main(args() As String) Dim objDE As DirectoryEntry Dim strPath As String = "LDAP://DC=onecity,DC=corp,DC=fabrikam,DC=com" If args.Length > 0 Then strPath = args(1) End If ' Create a new DirectoryEntry with the given path. objDE = New DirectoryEntry(strPath) Dim objChildDE As DirectoryEntry For Each objChildDE In objDE.Children Console.WriteLine(objChildDE.Path) Next objChildDE End Sub 'Main End Class 'PrintChildren
public class PrintChildren{ public static void Main(String[] args) { DirectoryEntry objDE; String strPath="LDAP://DC=onecity,DC=corp,DC=fabrikam,DC=com"; if(args.Length>0)strPath=args[1]; // Create a new DirectoryEntry with the given path. objDE=new DirectoryEntry(strPath); foreach(DirectoryEntry objChildDE in objDE.Children) Console.WriteLine(objChildDE.Path); } }
int main() { String^ args[] = Environment::GetCommandLineArgs(); DirectoryEntry^ objDE; String^ strPath = "LDAP://DC=onecity,DC=corp,DC=fabrikam,DC=com"; if(args->Length>1) { strPath=args[1]; } // Create a new DirectoryEntry with the given path. objDE = gcnew DirectoryEntry(strPath); System::Collections::IEnumerator^ enum0 = objDE->Children->GetEnumerator(); while (enum0->MoveNext()) { DirectoryEntry^ objChildDE = safe_cast<DirectoryEntry^>(enum0->Current); Console::WriteLine(objChildDE->Path); } }

- DirectoryServicesPermission Demand

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DirectoryEntry コンストラクタ (String, String, String)
アセンブリ: System.DirectoryServices (system.directoryservices.dll 内)

Dim path As String Dim username As String Dim password As String Dim instance As New DirectoryEntry(path, username, password)

- DirectoryServicesPermission Demand

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DirectoryEntry コンストラクタ

名前 | 説明 |
---|---|
DirectoryEntry () | DirectoryEntry クラスの新しいインスタンスを初期化します。 |
DirectoryEntry (Object) | 指定したネイティブ Active Directory オブジェクトにバインドする DirectoryEntry クラスの新しいインスタンスを初期化します。 |
DirectoryEntry (String) | 指定したパスにある Active Directory のノードにバインドする DirectoryEntry クラスの新しいインスタンスを初期化します。 |
DirectoryEntry (String, String, String) | DirectoryEntry クラスの新しいインスタンスを初期化します。 |
DirectoryEntry (String, String, String, AuthenticationTypes) | DirectoryEntry クラスの新しいインスタンスを初期化します。 |

DirectoryEntry コンストラクタ (String, String, String, AuthenticationTypes)
アセンブリ: System.DirectoryServices (system.directoryservices.dll 内)

Public Sub New ( _ path As String, _ username As String, _ password As String, _ authenticationType As AuthenticationTypes _ )
Dim path As String Dim username As String Dim password As String Dim authenticationType As AuthenticationTypes Dim instance As New DirectoryEntry(path, username, password, authenticationType)
public DirectoryEntry ( string path, string username, string password, AuthenticationTypes authenticationType )
public: DirectoryEntry ( String^ path, String^ username, String^ password, AuthenticationTypes authenticationType )
public DirectoryEntry ( String path, String username, String password, AuthenticationTypes authenticationType )
public function DirectoryEntry ( path : String, username : String, password : String, authenticationType : AuthenticationTypes )

- DirectoryServicesPermission Demand

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DirectoryEntry コンストラクタ (Object)
アセンブリ: System.DirectoryServices (system.directoryservices.dll 内)


このコンストラクタを使用すると、プログラムで、ネイティブ API を通じて IAD インターフェイスを実装するネイティブ Active Directory オブジェクトに対して、DirectoryEntry クラスのメソッドとプロパティを使用できます。IAD インターフェイスの詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library) の「IADs」を参照してください。

- DirectoryServicesPermission Demand

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DirectoryEntry コンストラクタ ()のページへのリンク