共用方式為


IdentityService.CreateGroup 方法

命名空間:  Microsoft.VisualStudio.Services.Identity
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
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
)

參數

  • groupSid
    類型:System.String
    建立的群組的安全識別項。可以是 null

傳回值

類型:Microsoft.VisualStudio.Services.Identity.Identity

.NET Framework 安全性

請參閱

參考

IdentityService 類別

Microsoft.VisualStudio.Services.Identity 命名空間