DirectoryEntry.Name 속성

정의

기본 디렉터리 서비스를 사용하여 명명된 개체의 이름을 가져옵니다.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
[System.ComponentModel.Browsable(false)]
[System.DirectoryServices.DSDescription("DSName")]
public string Name { get; }
member this.Name : string
[<System.ComponentModel.Browsable(false)>]
[<System.DirectoryServices.DSDescription("DSName")>]
member this.Name : string
Public ReadOnly Property Name As String

속성 값

기본 디렉터리 서비스를 사용하여 명명된 개체의 이름입니다.

특성

예제

다음 예제에서는 Active Directory Domain Services 노드에 대한 DirectoryEntry 만듭니다. 그런 다음 자식 노드의 Name 속성과 Path 속성을 표시합니다.

Dim myADSPath As String = "LDAP://onecity/CN=Users,DC=onecity,
           _DC=corp,DC=fabrikam,DC=com"
Dim myDirectoryEntry As New DirectoryEntry(myADSPath)

Console.WriteLine("DirectoryEntry Name :" + myDirectoryEntry.Name)
Console.WriteLine(ControlChars.NewLine _
        + "The child entries for this node in the Active Directory Domain Services hierarchy")

Dim myDirectoryEntryChild As DirectoryEntry
For Each myDirectoryEntryChild In  myDirectoryEntry.Children
   Console.WriteLine(myDirectoryEntryChild.Path)
Next myDirectoryEntryChild
String myADSPath = "LDAP://onecity/CN=Users,
             DC=onecity,DC=corp,DC=fabrikam,DC=com";
DirectoryEntry myDirectoryEntry=new DirectoryEntry(myADSPath);

Console.WriteLine("DirectoryEntry Name :"+ myDirectoryEntry.Name);
Console.WriteLine("\nThe child entries for this node "+
   "in the Active Directory Domain Services hierarchy");

foreach(DirectoryEntry myDirectoryEntryChild in
   myDirectoryEntry.Children)
{
   Console.WriteLine(myDirectoryEntryChild.Path);
}

설명

이 이름은 이 항목과 SchemaClassName형제 항목을 구분하며 각 컨테이너의 형제 간에 고유해야 합니다.

적용 대상