Share via


字串屬性型別

Active Directory 網域服務使用幾種不同的語法類型代表字串。System.DirectoryServices 使用 String 類別來代表下列所有語法類型。如需有關這些語法類型的詳細資訊,請參閱 MSDN Library,網址為 https://go.microsoft.com/fwlink/?LinkID=27252 (本頁面可能為英文)。

  • Object(DS-DN)
  • Object(Presentation-Address)
  • String(IA5)
  • String(Numeric)
  • String(Object-Identifier)
  • String(Printable)
  • String(Teletex)
  • String(Unicode)

下列範例示範如何讀取字串。

Dim address As [String] = ent.Properties("streetAddress ").Value.ToString()
Console.WriteLine(address)
String address= ent.Properties["streetAddress "].Value.ToString();
Console.WriteLine(address);

請參閱

參考

System.DirectoryServices

概念

屬性型別

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation.All rights reserved.