共用方式為


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 命名空間