Partager via


SidIdentityHelper Class

Helper methods for SID-based descriptors, like Windows and TFS.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Common.SidIdentityHelper

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

Syntax

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

The SidIdentityHelper type exposes the following members.

Methods

  Name Description
Public methodStatic member ConstructWellKnownSid Construct well-known Team Foundation identifier.
Public methodStatic member DecodeSid Convert a binary SID into its parts.The code for this conversion comes from the SecurityIdentifier object.
Public methodStatic member EncodeSid
Public methodStatic member GetDomainSid
Public methodStatic member GetSidRid
Public methodStatic member IsBuiltInAccount Determine if this is the SID of one of the built-in accounts. All built-in accounts come from the Windows NT Authority (5) and have 32 as their first sub authority.
Public methodStatic member IsNTAccount If this is the SID of an NT Identity, then NT Identities can come from either the SAM database or Active Directory. They come from the Windows NT Authority (5) and have 21 as their first sub authority.
Public methodStatic member IsServiceAccount Determines if this is the well-known SID for Network Service or Local Service.

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.Framework.Common Namespace