DateTime 속성
Active Directory 도메인 서비스 스키마는 String(Generalized-Time) 및 String(UTC-Time) 구문 형식을 사용하여 날짜 및 시간 정보를 나타냅니다. String(Generalized-Time) 및 String(UTC-Time) 구문 형식에 대한 자세한 내용은 MSDN Library(https://go.microsoft.com/fwlink/?LinkID=27252)에서 "String(Generalized-Time)" 또는 "String(UTC-Time)"을 참조하십시오.
System.DirectoryServices 네임스페이스는 DateTime 구조를 사용하여 이러한 데이터 형식을 나타냅니다. 이 속성 형식은 ADSI ADSTYPE_UTC_TIME 속성 형식과 같습니다. ADSTYPE_UTC_TIME 속성 형식에 대한 자세한 내용은 MSDN Library(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.