原创 sharepoint中添加計時器作業時用到的倆個方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.SharePoint;using Micr
原创 Net 訪問 SharePoint Rest 報錯問題
SharePoint 2013 提供了一個具象狀態傳輸 (REST) 接口,在使用Net web項目調用Rest 接口時有時會報:遠程服務器返回錯誤: (401) 未經授權。 具體代碼部分: 之前在微軟的官網上看到,sharepoin
原创 sharepoint 獲取userprofileManager中用戶詳細信息
using (SPSite spSite = new SPSite(siteUrl)) { DataTable usersDT = new DataTable();
原创 sharepoint 在當前頁中獲取當前頁的url
SPContext.Current.Site.UpgradeRedirectUri.ToString();
原创 sharepoint 使用feature 是用到的一些命令
如果用cmd命令時 加這句話cd C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/BIN 如果shar
原创 sharepoint 中添加計時器作業TimerJob
項目說明: 此項目功能是在服務場中添加一個計時器作業。 1.項目包含兩個類文件: 一個是實現功能註冊的TimeJobInstaller, 即實現計時器作業註冊功能的類。 另一個是計時器作業需要執行的操作類。 2.安裝部
原创 doc解析xml讀取節點信息
用doc解析xml時讀取節點信息的兩種方法 1。用doc.getElementByTagName("tagName");tagName是string類型的 2。用doc.getElementById("//FilterCategory[@