using (var svc = new AdministrationService.AdministrationClient())
{
var request = new AdministrationService.ManagementGroupRequestOfProgramMembershipStub();
request.Token = "Token";
request.ManagementGroup = "Management group";
var programMembershipStub = new AdministrationService.ProgramMembershipStub();
programMembershipStub.Program_RSN = new Guid("b6cede29-4de1-4344-a0a4-b9b69ac33b99");;
programMembershipStub.ProgramMembership_RSN = new Guid("ae3acc76-67cc-40cc-9ead-e226b95b2926");;
request.Value = programMembershipStub;
AdministrationService.Result result = svc.UpdateProgramMembership(request);
if (result.FaultCode == 0)
{
}
else
{
throw new Exception(result.FaultDescription);
}
}