DateTime プロパティ
Active Directory ドメイン サービス スキーマは、String(Generalized-Time) および String(UTC-Time) 構文型で日付および時刻情報を表します。String(Generalized-Time) および String(UTC-Time) 構文型の詳細については、MSDN ライブラリ (https://go.microsoft.com/fwlink/?LinkID=27252) で String(Generalized-Time) または String(UTC-Time) に関するトピックを参照してください。
System.DirectoryServices 名前空間は、DateTime 構造体を使用してこれらのデータ型を表します。このプロパティ型は、ADSI ADSTYPE_UTC_TIME プロパティ型と同等です。ADSTYPE_UTC_TIME プロパティ型の詳細については、MSDN ライブラリ (https://go.microsoft.com/fwlink/?LinkID=27252) で ADSTYPEENUM に関するトピックを参照してください。
次の例は、オブジェクトの DateTime プロパティを書き込む方法を示しています。
DateTime newdt = new DateTime(2002, 10, 21, 11, 4, 5, 0);
de.Properties["TestTime"].Value = newdt;
de.CommitChanges();
関連項目
リファレンス
System.DirectoryServices
DateTime
概念
Send comments about this topic to Microsoft.
Copyright © 2007 by Microsoft Corporation. All rights reserved.