다음을 통해 공유


DirectoryEntry.Guid 속성

정의

의 GUID를 DirectoryEntry가져옵니다.

public:
 property Guid Guid { Guid get(); };
public Guid Guid { get; }
[System.ComponentModel.Browsable(false)]
[System.DirectoryServices.DSDescription("DSGuid")]
public Guid Guid { get; }
member this.Guid : Guid
[<System.ComponentModel.Browsable(false)>]
[<System.DirectoryServices.DSDescription("DSGuid")>]
member this.Guid : Guid
Public ReadOnly Property Guid As Guid

속성 값

Guid GUID를 나타내는 구조체 DirectoryEntry입니다.

특성

예제

다음 예제에서는 클래스의 Guid 속성과 NativeGuid 속성을 보여 줍니다 DirectoryEntry . 이 예제에서는 사용자 지정 DirectoryEntry 을 가져오고 해당 Guid 속성과 NativeGuid 속성을 표시합니다.

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

' Display the Guid and NativeGuid.
Console.WriteLine("The GUID of the ADS object:" + myDirectoryEntry.Guid.ToString)
Console.WriteLine("The Native GUID of the ADS" + "object:" + myDirectoryEntry.NativeGuid)
String myADSPath = "LDAP://onecity/CN=Users,DC=onecity,DC=corp,DC=fabrikam,DC=com";
DirectoryEntry myDirectoryEntry=new DirectoryEntry(myADSPath);

// Display the Guid and NativeGuid.
Console.WriteLine("The GUID of the ADS object:"+
                  myDirectoryEntry.Guid);
Console.WriteLine("The Native GUID of the ADS"+
                  "object:"+myDirectoryEntry.NativeGuid);

설명

Active Directory Domain Services의 개체에 바인딩하는 경우 속성을 사용합니다 NativeGuid .

적용 대상

추가 정보