Propriété de type chaîne
Les services de domaine Active Directory utilisent différents types de syntaxes pour représenter les chaînes. System.DirectoryServices utilise la classe String pour représenter tous les types de syntaxes suivants. Pour plus d'informations sur ces types de syntaxes, consultez MSDN Library à l'adresse 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)
L'exemple suivant montre comment lire une chaîne.
Dim address As [String] = ent.Properties("streetAddress ").Value.ToString()
Console.WriteLine(address)
String address= ent.Properties["streetAddress "].Value.ToString();
Console.WriteLine(address);
Voir aussi
Référence
Concepts
Send comments about this topic to Microsoft.
Copyright © 2007 par Microsoft Corporation. Tous droits réservés.