ExtendedDN 列舉

定義

ExtendedDN 列舉指定傳回延伸辨別名稱的格式。 這個列舉可與 ExtendedDN 屬性搭配使用。

public enum class ExtendedDN
public enum ExtendedDN
type ExtendedDN = 
Public Enum ExtendedDN
繼承
ExtendedDN

欄位

HexString 0

表示辨別名稱使用十六進位格式。

None -1

表示辨別名稱使用辨別名稱格式。

Standard 1

表示辨別名稱使用標準字串格式。

範例

下列 C# 範例示範如何以十六進位格式傳回辨別名稱的集合。

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

備註

辨別名稱的擴充形式包含 物件的 objectGUID 屬性字串表示。 對於使用者、群組和電腦等安全性主體物件,擴充表單也包含 objectSID 屬性的字串表示。 如需 objectGUID 和 objectSID 屬性的詳細資訊,請參閱 Object-GuidObject-Sid

適用於