DirectoryEntry.NativeGuid Propiedad

Definición

Obtiene el GUID del objeto DirectoryEntry tal y como lo devolvió el proveedor.

C#
public string NativeGuid { get; }
C#
[System.ComponentModel.Browsable(false)]
[System.DirectoryServices.DSDescription("DSNativeGuid")]
public string NativeGuid { get; }

Valor de propiedad

Estructura Guid que representa el GUID del objeto DirectoryEntry, tal y como lo devolvió el proveedor.

Atributos

Ejemplos

En el ejemplo siguiente se muestran las Guid propiedades y NativeGuid de la DirectoryEntry clase . En este ejemplo se obtiene el usuario especificado DirectoryEntry y se muestran sus Guid propiedades y NativeGuid .

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

Comentarios

Utilice la NativeGuid propiedad al enlazar un objeto en Servicios de dominio de Active Directory.

Nota

El proveedor Lightweight Directory Access Protocol (LDAP) devuelve el identificador único global de un DirectoryEntry en un formato diferente al de Internet Information Services (IIS), Novell NetWare Directory Server (NDS) y proveedores winNT.

Se aplica a

Producto Versiones
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

Consulte también