This documentation is archived and is not being maintained.

OSDetails::IsMachineInWorkgroup Method

Returns true if computer is joined to a workgroup or not joined. Otherwise, returns false (computer joined to a domain).

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

public:
static bool IsMachineInWorkgroup()

Return Value

Type: System::Boolean
Returns true if computer is joined to a workgroup or not joined. Otherwise, returns false (computer joined to a domain).

ExceptionCondition
[M:t:System.ComponentModel.Win32Exception]

Call to native method NetGetJoinInformation failed.

Show: