문제

누군가가 클라이언트 측 개체 모델에서 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