This documentation is archived and is not being maintained.
ComputerInfo Class
Visual Studio 2013
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
The ComputerInfo type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | ComputerDomain | If computer is joined to a domain, returns the domain name computer is joined to; otherwise return null. |
![]() ![]() | MachineName | Returns the host name. Do not use Environment.MachineName because that truncates at 15 characters (NetBIOS name limit - by design). http://blogs.msdn.com/brada/archive/2005/08/10/449767.aspx |
| Name | Description | |
|---|---|---|
![]() ![]() | DnsSafeIsSameMachine | |
![]() ![]() | GetComputerAccount | |
![]() ![]() | GetComputerDomain | Gets a NetBIOS domain name of the specified computer. This method is only supported on computers that are joined to a domain. On computers that are not joined to a domain, this method throws TfsAdminException exception. |
![]() ![]() | IsLocalMachine(String) | Determines if the given host name matches the current machine. |
![]() ![]() | IsLocalMachine(Uri) | Determines if the host name for the given URI matches the current machine. |
![]() ![]() | IsSameMachine |
Show:
