我试图在已经编制的《2010年股东名单》中加入新的名单。 使用Im的代码是:
ClientContext ctx = new ClientContext("http://bigboss/sites/presidencia"); Web thisWeb = ctx.Web; ctx.Load(thisWeb);
List processosList = ctx.Web.Lists.GetByTitle("Processos");
ListItemCreationInformation lici = new ListItemCreationInformation();
ListItem liNovoProcesso = processosList.AddItem(lici);
liNovoProcesso["Title"] = processo.Identificador;
liNovoProcesso["IdentificadorProcesso"] = processo.Identificador;
liNovoProcesso["DescricaoProcesso"] = processo.Descricao;
liNovoProcesso["NotasObservacoesProcesso"] = processo.NotasObservacoes;
liNovoProcesso["SituacaoProcesso"] = processo.Situacao;
processosList.Update();
ctx.ExecuteQuery();
This code runs without erros or exceptions, but the list isn t showing the items. I ve already tried to change Field names to trigger an error, just to be sure that the code its running, and it throws an error, like expected!
如果有的话,请?
感谢
José Cruz