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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- accountName
Type: System.String
- organizationName
Type: System.String
- accountPreferences
Type: Microsoft.TeamFoundation.Framework.Server.AccountPreferences
- properties
Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: Microsoft.VisualStudio.Services.Account.Account
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.