SPWEB.ALTERNATECSSURL Эквивалентная модель объекта на стороне клиента

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/90059

  •  10-12-2019
  •  | 
  •  

Вопрос

кто-то знает эквивалент SPWEB.AlternateCsSURL в модели на стороне клиента?

Спасибо

Это было полезно?

Другие советы

The property is exposed in the V16 Client DLLS for SharePoint online

According to UserVoice driving improvements to SharePoint API Microsoft released SharePoint 2013 and SharePoint Online solution packs that contains the following change to the existing API:

Web object exposes AlternateCssUrl property via CSOM (.Net, REST, JS)

Alternatively you could install the latest versions of SharePoint Server 2013 Client Components SDK or SharePoint Online Client Components SDK

Example:

using (var ctx = new ClientContext(webUri))
{
    ctx.Web.AlternateCssUrl = "/SiteAssets/Contoso.css";
    ctx.Web.Update();
    ctx.ExecuteQuery();
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top