回答

1

不幸的是,这是不可能的。使用CSOM,您只能获得激活的您的网站的功能列表。此例中的Feature类包含DisplayNameDefinitionId属性。

要获得通过CSOM功能,您可以使用以下获得上激活网范围功能的信息:

var webFeatures = ctx.Web.Features; 
ctx.Load(webFeatures,fcol => fcol.Include(f => f.DisplayName,f => f.DefinitionId)); 
ctx.ExecuteQuery(); 

foreach(var f in webFeatures) 
{ 
    Console.WriteLine(f.DisplayName); 
} 

由于这是O365 SSOM是相当不是一个选项。

+0

我试过一样,但功能没有属性DisplayName –

+0

你是否像上面的代码片段显式加载属性? – nizzik

相关问题