Environment: UserDomainName (get)

UserDomainName

Returns the name of the local machine within a domain



 Public Property Get UserDomainName ( ) As String

Return Values

String -  The computer name within a domain.

Remarks

Typically the domain name is the name of the machine, but can change depending on the application being deployed.

UserDomainName is not supported on Windows 95, 98, ME platforms and will throw a PlatformNotSupportedException exception.

Read Only.

See Also

Project CorLib Overview

Class Environment Overview