AccountService.CreateAccount 方法 (TeamFoundationRequestContext, String, String, AccountPreferences, IDictionary<String, Object>)

用当前经过身份验证的用户创建一个帐户作为创建者。

命名空间:  Microsoft.VisualStudio.Services.Account
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Public Function CreateAccount ( _
    requestContext As TeamFoundationRequestContext, _
    accountName As String, _
    organizationName As String, _
    accountPreferences As AccountPreferences, _
    properties As IDictionary(Of String, Object) _
) As Account
public Account CreateAccount(
    TeamFoundationRequestContext requestContext,
    string accountName,
    string organizationName,
    AccountPreferences accountPreferences,
    IDictionary<string, Object> properties
)

参数

返回值

类型:Microsoft.VisualStudio.Services.Account.Account

.NET Framework 安全性

请参阅

参考

AccountService 类

CreateAccount 重载

Microsoft.VisualStudio.Services.Account 命名空间