Domain.GetCurrentDomain Method ()
Gets the Domain object for the current user credentials in effect for the security context under which the application is running.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
A connection to the current context could not be made.
Domain object representing the domain to which the computer running the application is joined, regardless of the credentials associated with that application, use the GetComputerDomain method instead.method is determined by the domain credentials under which the application is running. To retrieve the
Available since 2.0