Partager via


String Property Type

Active Directory Domain Services uses several different syntax types to represent strings. System.DirectoryServices uses the String class to represent all of the following syntax types. For more information about these syntax types, see the MSDN Library at 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)

The following example shows how to read a string.

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

See Also

Reference

System.DirectoryServices

Concepts

Property Types

Send comments about this topic to Microsoft.

Copyright © 2007 by Microsoft Corporation. All rights reserved.