Sdílet prostřednictvím


DirectoryEntry.NativeGuid Vlastnost

Definice

Získá identifikátor GUID identifikátoru DirectoryEntry, jak je vráceno od zprostředkovatele.

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

Hodnota vlastnosti

Struktura Guid , která představuje identifikátor GUID objektu DirectoryEntry, jak je vráceno od zprostředkovatele.

Atributy

Příklady

Následující příklad ukazuje Guid a NativeGuid vlastnosti DirectoryEntry třídy. Tento příklad získá uživatelem zadaný DirectoryEntry a zobrazí jeho Guid a NativeGuid vlastnosti.

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

Poznámky

Vlastnost použijte při vytváření vazby NativeGuid objektu ve službě Active Directory Domain Services.

Poznámka:

Zprostředkovatel protokolu LDAP (Lightweight Directory Access Protocol) vrací globálně jedinečný identifikátor jiného DirectoryEntry formátu než poskytovatelé Internetové informační služby (IIS), Novell NetWare Directory Server (NDS) a WinNT.

Platí pro

Viz také