Tipo di proprietà String

Servizi di dominio Active Directory utilizza diversi tipi di sintassi per rappresentare le stringhe. System.DirectoryServices utilizza la classe String per rappresentare tutti i tipi di sintassi seguenti. Per ulteriori informazioni su questi tipi di sintassi, vedere MSDN Library all'indirizzo https://go.microsoft.com/fwlink/?LinkID=27252 (informazioni in lingua inglese).

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

Nell'esempio riportato di seguito viene illustrato come leggere una stringa.

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

Vedere anche

Riferimenti

System.DirectoryServices

Concetti

Tipi di proprietà

Send comments about this topic to Microsoft.

Copyright © 2007 Microsoft Corporation. Tutti i diritti riservati.