python操作sharepoint对象模型
2010-09-22 11:27:22 来源:WEB开发网PyListItem
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using System.Runtime.InteropServices;
namespace PySP
{
[ComVisible(true)]
public class PyListItem
{
protected SPListItem item = null;
protected void EnsureItem()
{
if (item == null)
throw new NullReferenceException("the item object can't be null !");
}
public PyListItem() { }
public PyListItem(SPListItem item)
{
this.item = item;
}
public string Title
{
get
{
EnsureItem();
return this.item.Title;
}
}
public void Update()
{
EnsureItem();
this.item.Update();
}
}
}
Tags:python 操作 sharepoint
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接