• 【SPS2010】Client Object Model


    Client Object Model 是SharePoint 2010中新加的一个非常酷的功能。开发者可以从NET客户端上运行的应用程序访问SharePoint 2010,从而大大扩展了sharepoint应用。再也不必‘自古华山一条路’用web-service。

    无需编写或安装SharePoint服务器上的代码。Client Object Model使我们能够建立集成的应用程序与SharePoint2010保持区隔,

    Client Object Model和Object Model极为相似。

    Client

    Server

    Microsoft.SharePoint.Client.ClientContext

    Microsoft.SharePoint.SPContext

    Microsoft.SharePoint.Client.Site

    Microsoft.SharePoint.SPSite

    Microsoft.SharePoint.Client.Web

    Microsoft.SharePoint.SPWeb

    Microsoft.SharePoint.Client.List

    Microsoft.SharePoint.SPList

    Microsoft.SharePoint.Client.ListItem

    Microsoft.SharePoint.SPListItem

    Microsoft.SharePoint.Client.Field

    Microsoft.SharePoint.SPField

    在客户端运行需要2个DLL.可以从sharepoint 2010服务器上取得

    Microsoft.SharePoint.Client.dll 

    Microsoft.SharePoint.Client.Runtime.dll

    位置:%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\ISAPI

     

    代码

    Dim clientContext AS ClientContext  = new ClientContext(siteUrl)

    Dim siteCollection AS Site = clientContext.Site

    Dim site AS Web  = clientContext.Web

    其他的和使用Object Model没有差别。

     

     

  • 相关阅读:
    SpringCloud分布式配置中心
    SpringCloud服务降级案列
    SpringCloud断路器(Hystrix)
    SpringCloud服务过滤filter
    SpringCloud路由网关Zuul
    SpringCloud微服务实现生产者消费者+ribbon负载均衡
    SpringCloud微服务的Eureka
    忘记MySQL密码以及无法登陆等解决办法
    MySQL备份
    实现两个MySQL数据库之间的主从同步
  • 原文地址:https://www.cnblogs.com/by1455/p/1641045.html
Copyright © 2020-2023  润新知