Export (0) Print
Expand All
Expand Minimize

ExtendedDN Enumeration

The ExtendedDN enumeration specifies the format in which to return the extended distinguished name. This enumeration is used with the DirectorySearcher.ExtendedDN property.

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

type ExtendedDN

Member nameDescription
HexStringIndicates that the distinguished name uses the hexadecimal format.
NoneIndicates that the distinguished name uses the distinguished name format.
StandardIndicates that the distinguished name uses the standard string format.

The extended form of a distinguished name includes a string representation of the objectGUID property of an object. For security principal objects such as users, groups, and computers, the extended form also includes a string representation of the objectSID property. For more information about the objectGUID and objectSID properties, see the topics Object-Guid and Object-Sid in the MSDN Library at http://msdn.microsoft.com/library.

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

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft