Click or drag to resize

AccountClientManagementGroupLogout Method

Logout an Account. The current Token will be expired, and no longer available for use.

Syntax
C#
public Result ManagementGroupLogout(
	ManagementGroupToken token
)

Parameters

token
Type: AccountServiceManagementGroupToken

Return Value

Type: Result
Examples
C#
using (var svc = new AccountService.AccountClient())
{
  var request = new AccountService.ManagementGroupToken();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  AccountService.Result result = svc.ManagementGroupLogout(request);

  if (result.FaultCode == 0)
  {
    //Logout succeeded
  }
  else
  {
    //Logout failed
    throw new Exception(result.FaultDescription);
  }
}
See Also