DirectoryEntry.NativeGuid 속성

정의

공급자가 반환하는 것과 같은 DirectoryEntry의 GUID를 가져옵니다.

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

속성 값

공급자가 반환하는 것과 같은 Guid의 GUID를 나타내는 DirectoryEntry 구조체입니다.

특성

예제

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

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);  
String^ myADSPath = "LDAP://onecity/CN=Users,DC=onecity,DC=corp,DC=fabrikam,DC=com";  
DirectoryEntry^ myDirectoryEntry = gcnew DirectoryEntry(myADSPath);  

// Display the Guid and NativeGuid.  
Console::WriteLine("The GUID of the ADS object: {0}", myDirectoryEntry->Guid));  
Console::WriteLine("The Native GUID of the ADS object: {0}",  
                   myDirectoryEntry->NativeGuid);  

설명

NativeGuid Active Directory Domain Services 개체를 바인딩할 때 속성을 사용합니다.

참고

LDAP(Lightweight Directory Access Protocol) 공급자는 IIS(인터넷 정보 서비스), Novell NetWare Directory Server(NDS) 및 WinNT 공급자와 다른 형식으로 의 전역적으로 고유한 식별자를 DirectoryEntry 반환합니다.

적용 대상

추가 정보