Delen via


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

Creates an account with the current authenticated user as the creator.

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

Syntax

'Declaration
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
)
public:
Account^ CreateAccount(
    TeamFoundationRequestContext^ requestContext, 
    String^ accountName, 
    String^ organizationName, 
    AccountPreferences^ accountPreferences, 
    IDictionary<String^, Object^>^ properties
)
member CreateAccount : 
        requestContext:TeamFoundationRequestContext * 
        accountName:string * 
        organizationName:string * 
        accountPreferences:AccountPreferences * 
        properties:IDictionary<string, Object> -> Account
public function CreateAccount(
    requestContext : TeamFoundationRequestContext, 
    accountName : String, 
    organizationName : String, 
    accountPreferences : AccountPreferences, 
    properties : IDictionary<String, Object>
) : Account

Parameters

Return Value

Type: Microsoft.VisualStudio.Services.Account.Account

.NET Framework Security

See Also

Reference

AccountService Class

CreateAccount Overload

Microsoft.VisualStudio.Services.Account Namespace