Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
 ExtendedDN Enumeration

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
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)

Visual Basic (Declaration)
Public Enumeration ExtendedDN
Visual Basic (Usage)
Dim instance As ExtendedDN
C#
public enum ExtendedDN
C++
public enum class ExtendedDN
J#
public enum ExtendedDN
JScript
public enum 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.

C#
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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker