3
쉽게 SharePoint 목록 코드를 현명하게 복제하는 방법이 있습니까?SharePoint 목록 복제
쉽게 SharePoint 목록 코드를 현명하게 복제하는 방법이 있습니까?SharePoint 목록 복제
SharePoint 태그를 보면 "프로그래밍 방식으로 SharePoint 목록 (SPList)을 어떻게 복사합니까?"라는 질문을 전하려합니다. 또한
SPWeb web; /* add code to initialize to current web */
SPList sourceList = web.Lists["nameOfSourceList"];
sourceList.SaveAsTemplate("templateFNM.stp", "tempList", "tempListDescription",
true /* include list content */);
SPListTemplate template = web.ListTemplates["tempList"];
web.Lists.Add("newListName", "newListDescription", template);
web.Update();
SPList newList = web.Lists["newListName"];
, here's 같은 전체의 웹 응용 프로그램을 달성하는 블로그 게시물에 대한 링크 : 그것을 테스트 (또는 컴파일하려고), 내가 좋아하는 일을 할 것없이
.
마지막으로 조언을 드리겠습니다. "코드 와이즈"대신 "프로그래밍 방식으로"사용하면 더 나은 검색 결과를 얻을 수 있습니다.
희망이 도움이됩니다.