ExtendedDN Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The ExtendedDN enumeration specifies the format in which to return the extended distinguished name. This enumeration is used with the ExtendedDN property.
public enum class ExtendedDN
public enum ExtendedDN
type ExtendedDN =
Public Enum ExtendedDN
- Inheritance
Name | Value | Description |
---|---|---|
None | -1 | Indicates that the distinguished name uses the distinguished name format. |
HexString | 0 | Indicates that the distinguished name uses the hexadecimal format. |
Standard | 1 | Indicates that the distinguished name uses the standard string format. |
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();
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 Object-Guid and Object-Sid.
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: