python操作sharepoint对象模型
2010-09-22 11:27:22 来源:WEB开发网PyListCollection
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using System.Runtime.InteropServices;
namespace PySP
{
[ComVisible(true)]
public class PyListCollection
{
protected SPListCollection lists;
protected void EnsureLists()
{
if (this.lists == null)
throw new NullReferenceException("the lists object can't be null!");
}
public PyListCollection() { }
public PyListCollection(SPListCollection lists)
{
this.lists = lists;
}
public int Count
{
get
{
EnsureLists();
return this.lists.Count;
}
}
public PyList GetListByIndex(int index)
{
EnsureLists();
return new PyList(this.lists[index]);
}
public PyList GetListByName(string name)
{
EnsureLists();
return new PyList(this.lists[name]);
}
}
}
Tags:python 操作 sharepoint
编辑录入:爽爽 [复制链接] [打 印]- ››操作系统资源不足两种方案解决办法
- ››Sharepoint 文档管理系列之归档处理
- ››python操作sharepoint对象模型
- ››Python 2.6.2的.pyc文件格式
- ››Python 2.6.2的字节码指令集一览
- ››Python 测试框架: 用 Python 测试框架简化测试
- ››Python 测试框架: 寻找要测试的模块
- ››Python的class系统
- ››Python 和 LDAP
- ››python图形处理库PIL(Python Image Library)
- ››Python图形图像处理库的介绍之Image模块
- ››Python和Google AppEngine开发基于Google架构的应...
更多精彩
赞助商链接