namespace ReadSPListData
{
class ProductInfo
{
public string productName { get; set; }
public string productSKU { get; set; }
public string productPrice { get; set; }
}
} private void btnExit_Click(object sender, EventArgs e)
{
Application.Exit();
}首先要加入合适的引用。右击项目。加入引用Microsoft.SharePoint.Client.dll和Microsoft.SharePoint.Client.Runtime.dll。并在代码中加入using。
原文:http://www.cnblogs.com/jzssuanfa/p/7077901.html