다음을 통해 공유


DirectoryEntry 생성자

정의

DirectoryEntry 클래스의 새 인스턴스를 초기화합니다.

오버로드

Name Description
DirectoryEntry()

DirectoryEntry 클래스의 새 인스턴스를 초기화합니다.

DirectoryEntry(Object)

지정된 네이티브 Active Directory Domain Services 개체에 바인딩하는 클래스의 DirectoryEntry 새 인스턴스를 초기화합니다.

DirectoryEntry(String)

지정된 경로에 DirectoryEntry 있는 Active Directory Domain Services의 노드에 이 인스턴스를 바인딩하는 클래스의 새 인스턴스를 초기화합니다.

DirectoryEntry(String, String, String)

DirectoryEntry 클래스의 새 인스턴스를 초기화합니다.

DirectoryEntry(String, String, String, AuthenticationTypes)

DirectoryEntry 클래스의 새 인스턴스를 초기화합니다.

DirectoryEntry()

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

DirectoryEntry 클래스의 새 인스턴스를 초기화합니다.

public:
 DirectoryEntry();
public DirectoryEntry();
Public Sub New ()

적용 대상

DirectoryEntry(Object)

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

지정된 네이티브 Active Directory Domain Services 개체에 바인딩하는 클래스의 DirectoryEntry 새 인스턴스를 초기화합니다.

public:
 DirectoryEntry(System::Object ^ adsObject);
public DirectoryEntry(object adsObject);
new System.DirectoryServices.DirectoryEntry : obj -> System.DirectoryServices.DirectoryEntry
Public Sub New (adsObject As Object)

매개 변수

adsObject
Object

바인딩할 네이티브 Active Directory Domain Services 개체의 이름입니다.

설명

이 생성자를 사용하면 프로그램에서 네이티브 API를 통해 IADs 인터페이스를 구현하는 네이티브 Active Directory Domain Services 개체에서 클래스의 DirectoryEntry 메서드와 속성을 사용할 수 있습니다. IAD 인터페이스에 대한 자세한 내용은 IAD 문서를 참조하세요.

적용 대상

DirectoryEntry(String)

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

지정된 경로에 DirectoryEntry 있는 Active Directory Domain Services의 노드에 이 인스턴스를 바인딩하는 클래스의 새 인스턴스를 초기화합니다.

public:
 DirectoryEntry(System::String ^ path);
public DirectoryEntry(string? path);
public DirectoryEntry(string path);
new System.DirectoryServices.DirectoryEntry : string -> System.DirectoryServices.DirectoryEntry
Public Sub New (path As String)

매개 변수

path
String

디렉터리에 바인딩 DirectoryEntry(String) 할 경로입니다. 속성이 이 Path 값으로 초기화됩니다.

예제

다음은 개체를 DirectoryEntry 지정된 경로의 디렉터리 항목에 바인딩하고 노드의 속성으로 지정된 각 자식 항목의 속성을 표시하는 Path 예제입니다 Children .

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);
   }
 }

적용 대상

DirectoryEntry(String, String, String)

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

DirectoryEntry 클래스의 새 인스턴스를 초기화합니다.

public:
 DirectoryEntry(System::String ^ path, System::String ^ username, System::String ^ password);
public DirectoryEntry(string? path, string? username, string? password);
public DirectoryEntry(string path, string username, string password);
new System.DirectoryServices.DirectoryEntry : string * string * string -> System.DirectoryServices.DirectoryEntry
Public Sub New (path As String, username As String, password As String)

매개 변수

path
String

DirectoryEntry경로입니다. 속성이 이 Path 값으로 초기화됩니다.

username
String

클라이언트를 인증할 때 사용할 사용자 이름입니다. 속성이 이 Username 값으로 초기화됩니다.

password
String

클라이언트를 인증할 때 사용할 암호입니다. 속성이 이 Password 값으로 초기화됩니다.

적용 대상

DirectoryEntry(String, String, String, AuthenticationTypes)

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

DirectoryEntry 클래스의 새 인스턴스를 초기화합니다.

public:
 DirectoryEntry(System::String ^ path, System::String ^ username, System::String ^ password, System::DirectoryServices::AuthenticationTypes authenticationType);
public DirectoryEntry(string? path, string? username, string? password, System.DirectoryServices.AuthenticationTypes authenticationType);
public DirectoryEntry(string path, string username, string password, System.DirectoryServices.AuthenticationTypes authenticationType);
new System.DirectoryServices.DirectoryEntry : string * string * string * System.DirectoryServices.AuthenticationTypes -> System.DirectoryServices.DirectoryEntry
Public Sub New (path As String, username As String, password As String, authenticationType As AuthenticationTypes)

매개 변수

path
String

DirectoryEntry경로입니다. 속성이 이 Path 값으로 초기화됩니다.

username
String

클라이언트를 인증할 때 사용할 사용자 이름입니다. 속성이 이 Username 값으로 초기화됩니다.

password
String

클라이언트를 인증할 때 사용할 암호입니다. 속성이 이 Password 값으로 초기화됩니다.

authenticationType
AuthenticationTypes

값 중 AuthenticationTypes 하나입니다. 속성이 이 AuthenticationType 값으로 초기화됩니다.

추가 정보

적용 대상