Partager via


OSDetails Class

Provides information about the Team Foundation Server operating system. This class does not attempt to provide information for older operating systems the server is not supported on (e.g. Windows 2000, Home Server and Windows XP).

If support for those OS's are needed - feel free to extend this class.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Common.OSDetails

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Declaration
Public NotInheritable Class OSDetails
public static class OSDetails
public ref class OSDetails abstract sealed
[<AbstractClass>]
[<Sealed>]
type OSDetails =  class end
public final class OSDetails

The OSDetails type exposes the following members.

Properties

  Name Description
Public propertyStatic member Edition
Public propertyStatic member Is64BitNotWow64 Returns true if the current process is running on 64-bit AND NOT in WOW64 mode.
Public propertyStatic member Is64BitOperatingSystem Returns true if OS is 64 bit.
Public propertyStatic member IsClient True if a client OS such as Windows Vista or Windows 7.
Public propertyStatic member IsDomainController
Public propertyStatic member IsHomeEdition
Public propertyStatic member IsIis7OrLater
Public propertyStatic member IsServer True if a server OS such as Windows Server 2003 or Windows 2008.
Public propertyStatic member IsUnsupportedEdition
Public propertyStatic member IsWin8OrLater
Public propertyStatic member IsWinBlueOrLater
Public propertyStatic member IsWow64 Returns true if the current process is running in WOW64 mode.
Public propertyStatic member MajorVersion
Public propertyStatic member MinorVersion
Public propertyStatic member ServicePackMajor
Public propertyStatic member ServicePackMinor
Public propertyStatic member Version

Top

Methods

  Name Description
Public methodStatic member IsMachineInWorkgroup Returns true if computer is joined to a workgroup or not joined. Otherwise, returns false (computer joined to a domain).

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.

See Also

Reference

Microsoft.TeamFoundation.Common Namespace