共用方式為


IdentityService.CreateGroup Method

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

Syntax

'Declaration
Public MustOverride Function CreateGroup ( _
    requestContext As TeamFoundationRequestContext, _
    scopeId As Guid, _
    groupSid As String, _
    groupName As String, _
    groupDescription As String, _
    specialType As SpecialGroupType, _
    scopeLocal As Boolean, _
    hasRestrictedVisibility As Boolean _
) As Identity
public abstract Identity CreateGroup(
    TeamFoundationRequestContext requestContext,
    Guid scopeId,
    string groupSid,
    string groupName,
    string groupDescription,
    SpecialGroupType specialType,
    bool scopeLocal,
    bool hasRestrictedVisibility
)
public:
virtual Identity^ CreateGroup(
    TeamFoundationRequestContext^ requestContext, 
    Guid scopeId, 
    String^ groupSid, 
    String^ groupName, 
    String^ groupDescription, 
    SpecialGroupType specialType, 
    bool scopeLocal, 
    bool hasRestrictedVisibility
) abstract
abstract CreateGroup : 
        requestContext:TeamFoundationRequestContext * 
        scopeId:Guid * 
        groupSid:string * 
        groupName:string * 
        groupDescription:string * 
        specialType:SpecialGroupType * 
        scopeLocal:bool * 
        hasRestrictedVisibility:bool -> Identity
public abstract function CreateGroup(
    requestContext : TeamFoundationRequestContext, 
    scopeId : Guid, 
    groupSid : String, 
    groupName : String, 
    groupDescription : String, 
    specialType : SpecialGroupType, 
    scopeLocal : boolean, 
    hasRestrictedVisibility : boolean
) : Identity

Parameters

  • groupSid
    Type: System.String

    The security identifier of the group to create. Can be null

Return Value

Type: Microsoft.VisualStudio.Services.Identity.Identity

.NET Framework Security

See Also

Reference

IdentityService Class

Microsoft.VisualStudio.Services.Identity Namespace