字符串属性类型

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.

版权所有 (C) 2007 Microsoft Corporation。保留所有权利。