DomainController.CurrentTime Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the current date and time from this domain controller.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public DateTime CurrentTime { get; }

Property Value

Type: System.DateTime

A DateTime object that contains the current date and time from this domain controller.

Exception Condition
ObjectDisposedException

The current object has been disposed.

.NET Framework
Available since 2.0
Return to top
Show: