次の方法で共有


文字列プロパティ型

Active Directory ドメイン サービスでは、文字列を表すために、いくつかの異なる構文型が使用されます。System.DirectoryServices は、String クラスを使用して次のすべての構文型を表します。これらの構文型の詳細については、MSDN ライブラリ (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.