AccountClientManagementGroupLogout Method |
Logout an Account. The current Token will be expired, and no longer available for use.
public Result ManagementGroupLogout( ManagementGroupToken token )
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); } }