http://msdn.microsoft.com/en-us/library/office/dn423226.aspx
public static void GetSkyDriveFiles(string path, int rowLimit, string sortExpression)
{
string queryText = "Path:\""+path+"Documents/*\" IsDocument:1";
//string uriTempale = "{0}_api/search/query?querytext='{1}'&rowlimit={2}&sortlist='{3}'";
var clientContext = new ClientContext(@path)
{
Credentials = "ur credentials";
}
cxq.KeywordQuery keywordQuery = new cxq.KeywordQuery(clientContext);
keywordQuery.QueryText = queryText;
keywordQuery.RowLimit = rowLimit;
cxq_ConvertSortExpressionToList(keywordQuery.SortList, sortExpression);
//keywordQuery.SortList.Add("Write", cxq.SortDirection.Ascending);
cxq.SearchExecutor searchExecutor = new cxq.SearchExecutor(clientContext);
ClientResult<cxq.ResultTableCollection> results = searchExecutor.ExecuteQuery(keywordQuery);
clientContext.ExecuteQuery();
}
你試過http://blogs.msdn.com/b/sharepointdev/archive/2013/08/13 /access-skydrive-pro-using-the-sharepoint-2013-apis.aspx?這是關於REST API的,但他們說「CSOM等價物可用」 – ovolko