Click or drag to resize

AdministrationClientUpdateProgramMembership Method

Syntax
C#
public Result UpdateProgramMembership(
	ManagementGroupRequestOfProgramMembershipStub request
)

Parameters

request
Type: AdministrationServiceManagementGroupRequestOfProgramMembershipStub

Return Value

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

  var programMembershipStub = new AdministrationService.ProgramMembershipStub();
  programMembershipStub.Program_RSN = new Guid("b6cede29-4de1-4344-a0a4-b9b69ac33b99");; //Required - RSN of new program
  programMembershipStub.ProgramMembership_RSN = new Guid("ae3acc76-67cc-40cc-9ead-e226b95b2926");; //Required

  // add programMembershipStub to request
  request.Value = programMembershipStub;

  AdministrationService.Result result = svc.UpdateProgramMembership(request);

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