How can i get name of the site definition configuration or site template from SPWeb?

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

  •  06-12-2019
  •  | 
  •  

문제

I know that SPWeb have "WebTemplate" property and it always gives me string like "STS" or "MPS", but what I need is something like "STS#1". There is also "WebTemplateId" property, it gives WebTemplate Enumeration, which isn't useful for me.

도움이 되었습니까?

해결책

You can get WebTemplate and Configuration properties, then use string.format("{0}#{1}", web.WebTemplate, web.Configuration ).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top