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
- sid
Type: System.String
Return Value
Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptor
Returns IdentityDescriptor.
.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.