zoukankan      html  css  js  c++  java
  • 在list上生成一个folder

              

              Dim spsite As New SPSite(ServerURL)
              Dim spweb As SPWeb = spsite.OpenWeb()
              Dim splist As SPList = spweb.Lists(ListName)
              Dim MD5String As String = String.Empty
              Dim foldername as string = "Category11"
            
               spweb.AllowUnsafeUpdates = True
               Dim Spitemfolders As SPListItemCollection = splist.Folders
               Dim SPitemfolder As SPListItem
               Dim isFolderNoExist As Boolean = True


                 For Each SPitemfolder In Spitemfolders
                     If SPitemfolder.Name = Foldername Then
                         isFolderNoExist = False
                     End If
                 Next


                 If isFolderNoExist Then
                     Dim newFolder As SPListItem = splist.Items.Add(splist.RootFolder.ServerRelativeUrl, PFileSystemObjectType.Folder, "")
                     newFolder("Name") = foldername
                     newFolder.Update()
                  endif

  • 相关阅读:
    swoole 的 go function 是什么
    MySQL grant之后要不要跟上 flush privileges
    操作数据库
    APP端异常情况
    评论列表优化联表问题
    tp5修改数据前过滤
    字典
    if语句
    【整理】android事件传递机制
    Linux常用操作
  • 原文地址:https://www.cnblogs.com/by1455/p/1296916.html
Copyright © 2011-2022 走看看