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.
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)
Syntax
'Declaration
Public Shared Function IsMachineInWorkgroup As Boolean
public static bool IsMachineInWorkgroup()
public:
static bool IsMachineInWorkgroup()
static member IsMachineInWorkgroup : unit -> bool
public static function IsMachineInWorkgroup() : boolean
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).
Exceptions
Exception | Condition |
---|---|
[M:t:System.ComponentModel.Win32Exception] | Call to native method NetGetJoinInformation failed. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.