Partager via


IdentityHelper.CreateDescriptorFromSid Method (String)

Create TFS or Windows descriptor for SID based identities. If the type is already known, using the type specific Create method will be faster.

TFS group sids start with S-1-9-1551374245. Anything else is treated as Windows, known forms are S-1-5-xxxx, and there are well know groups that have sids of the form S-1-0, S-1-0-xx, S-1-2, S-1-3, S-1-3-xx, S-1-4, S-1-5, S-1-5-xxx

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

Syntax

'Declaration
Public Shared Function CreateDescriptorFromSid ( _
    sid As String _
) As IdentityDescriptor
public static IdentityDescriptor CreateDescriptorFromSid(
    string sid
)
public:
static IdentityDescriptor^ CreateDescriptorFromSid(
    String^ sid
)
static member CreateDescriptorFromSid : 
        sid:string -> IdentityDescriptor
public static function CreateDescriptorFromSid(
    sid : String
) : IdentityDescriptor

Parameters

Return Value

Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptor
Returns IdentityDescriptor.

.NET Framework Security

See Also

Reference

IdentityHelper Class

CreateDescriptorFromSid Overload

Microsoft.TeamFoundation.Framework.Server Namespace