Where is a SiteLogoUrl in CSOM?

拟墨画扇 提交于 2019-12-10 15:29:23

问题


I found SPWeb.SiteLogoUrl and expected this property in CSOM and REST. But I didn't find it. How can I get a SiteLogoUrl using CSOM or REST?

SP.js

Microsoft.SharePoint.Client.dll


回答1:


It was moved to the POST request that SharePoint creates while redirecting via appredirect.aspx. So, the only one way to get Site Logo Url is to handle appredirect POST request.

To initiate redirect you should use this code snippet:

Response.Redirect(TokenHelper.GetAppContextTokenRequestUrl(sharePointHostUrl, Server.UrlEncode(targetUrl)));

ContextToken, SiteLogo, Url, Title and so on can be found in the POST FormData.



来源:https://stackoverflow.com/questions/18313303/where-is-a-sitelogourl-in-csom

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!