Share via


SidIdentityHelper.IsServiceAccount Method

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

See Also

Reference

SidIdentityHelper Class

Microsoft.TeamFoundation.Framework.Common Namespace