DirectorySearcher.ExtendedDN Propriedade

Definição

Obtém ou define um valor que indica o formato dos nomes distintos.

C#
public System.DirectoryServices.ExtendedDN ExtendedDN { get; set; }
C#
[System.DirectoryServices.DSDescription("DSExtendedDn")]
[System.Runtime.InteropServices.ComVisible(false)]
public System.DirectoryServices.ExtendedDN ExtendedDN { get; set; }

Valor da propriedade

Um dos valores de ExtendedDN.

Atributos

Exemplos

O exemplo a seguir mostra como retornar uma coleção de nomes diferenciados no formato hexadecimal.

C#
using System.DirectoryServices;  
...  
DirectorySearcher src = new DirectorySearcher("…");  
src.PropertiesToLoad = new string[] {ntSecurityDescriptor,…};  
src.ExtendedDN = ExtendedDN.HexString;  
SearchResultCollection res = src.FindAll();  

Aplica-se a

Produto Versões
.NET Framework 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