Determines if this is the well-known SID for Network Service or Local Service.
Namespace:  Microsoft.TeamFoundation.Framework.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)
Syntax
'Declaration
Public Shared Function IsServiceAccount ( _
    sid As Byte() _
) As Boolean
public static bool IsServiceAccount(
    byte[] sid
)
public:
static bool IsServiceAccount(
    array<unsigned char>^ sid
)
static member IsServiceAccount : 
        sid:byte[] -> bool
public static function IsServiceAccount(
    sid : byte[]
) : boolean
Parameters
- sid 
 Type: array<System.Byte[]- SID to check, in binary form. 
Return Value
Type: System.Boolean
True if this is Network Service or Local Service; otherwise, false.
.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.