Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Common.ComputerInfo
Namespace: Microsoft.TeamFoundation.Common
Assembly: Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public NotInheritable Class ComputerInfo
public static class ComputerInfo
public ref class ComputerInfo abstract sealed
[<AbstractClass>]
[<Sealed>]
type ComputerInfo = class end
public final class ComputerInfo
The ComputerInfo type exposes the following members.
Properties
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). https://blogs.msdn.com/brada/archive/2005/08/10/449767.aspx |
Top
Methods
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 |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.