【发布时间】:2017-12-22 16:11:50
【问题描述】:
我可以使用GraphServiceClient 使用以下代码在 SharePoint Online 的文档库中搜索:
GraphServiceClient graphClient = new GraphServiceClient(
"https://graph.microsoft.com/v1.0",
new DelegateAuthenticationProvider(async (requestMessage) => {
await Task.Run(() => { });
requestMessage.Headers.Authorization =
new AuthenticationHeaderValue("bearer", accessToken);
}));
var ddd = await client.Sites["SiteUrl"].Drives["DriveId"].Search("srchTxt").Request().GetAsync();
但是,我没有找到类似网站的搜索方法
var ddd = await client.Sites["SiteUrl"].Search("srchTxt").Request().GetAsync();
是否可以使用 GraphServiceClient 在 SharePoint Online 中的网站中进行搜索?
【问题讨论】:
标签: microsoft-graph-api sharepoint-online