共用方式為


TeamFoundationIdentityService.CreateUser 方法 (TeamFoundationRequestContext, String, String, String)

建立Team Foundation與混亂別名的識別身份 (使用者)。 使用者具有全域範圍。 它們不限於任何專案。 目前唯一使用大小寫,這個函式是以追蹤從另一個環境匯入的識別。 因此識別是標示為非作用中。 您不想讓它保持作用中狀態,因為它無法使用這個名稱干擾真正的使用中的帳戶。

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

語法

'宣告
Public Function CreateUser ( _
    requestContext As TeamFoundationRequestContext, _
    userDomain As String, _
    account As String, _
    description As String _
) As IdentityDescriptor
public IdentityDescriptor CreateUser(
    TeamFoundationRequestContext requestContext,
    string userDomain,
    string account,
    string description
)

參數

傳回值

型別:Microsoft.TeamFoundation.Framework.Server.IdentityDescriptor
傳回 IdentityDescriptor

實作

ITeamFoundationIdentityService.CreateUser(TeamFoundationRequestContext, String, String, String)

.NET Framework 安全性

請參閱

參考

TeamFoundationIdentityService 類別

CreateUser 多載

Microsoft.TeamFoundation.Framework.Server 命名空間