Export (0) Print
Expand All

DirectorySearcher.ExtendedDN Property

Gets or sets a value that indicates the format of the distinguished names.

Namespace: System.DirectoryServices
Assembly: System.DirectoryServices (in system.directoryservices.dll)

[ComVisibleAttribute(false)] 
public ExtendedDN ExtendedDN { get; set; }
/** @property */
public ExtendedDN get_ExtendedDN ()

/** @property */
public void set_ExtendedDN (ExtendedDN value)

public function get ExtendedDN () : ExtendedDN

public function set ExtendedDN (value : ExtendedDN)

Not applicable.

Property Value

One of the ExtendedDN values.

The following example shows how to return a collection of distinguished names in hexadecimal format.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft