无法使用CSOM API加载Web的NoCrawl属性 [英] Unable to load NoCrawl property of a Web using CSOM API
问题描述
我无法使用CSOM API加载Web的NoCrawl属性。它表示像场或属性"NoCrawl"不存在。
我们正在使用csom执行以下活动:
clientContext.Load(oWebsite ,i => i.NoCrawl);
                      clientContext.ExecuteQuery();
我在这里遗漏了什么。
Ashish Baranwal要知道你所知道的和你不知道的,这才是真正的知识
< blockquote>
您好Ashish,
据我所知,NoCrawl属性用于SharePoint Server对象SPWeb对象。
SharePoint Server对象模型NoCrawl财产:
SharePoint客户端对象模型中没有Web类的此类属性:
解决方法是创建自定义网络使用SharePoint Server对象模型使用此属性进行服务,然后使用客户端代码调用它。
SharePoint 2013:创建自定义在SharePoint
中托管并在WSP中部署的WCF REST服务
谢谢
最好的问候
Hi ,
I am unable to load NoCrawl property of a Web using CSOM API. It says like Field or property "NoCrawl" does not exist.
We are doing below activity using csom:
clientContext.Load(oWebsite, i => i.NoCrawl);
clientContext.ExecuteQuery();
Am i missing anything here.
Ashish Baranwal To know what you know and what you do not know, that is true knowledge
Hi Ashish,
As I understand, NoCrawl property is used in SharePoint Server Object SPWeb object.
SharePoint Server Object Model NoCrawl property:
And there is no such property for web class in SharePoint Client Object Model:
Client Object Model Web Method
A workaround would be that creating a custom web service with this properties using SharePoint Server Object Model and then call it using Client Side code.
SharePoint 2013: Create a Custom WCF REST Service Hosted in SharePoint and Deployed in a WSP
Thanks
Best Regards
这篇关于无法使用CSOM API加载Web的NoCrawl属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!