The web template id can be found using object model or Power shell script.
Powershell script to find the specific web template details:
Open windows Powershell ISE to execute the comments/scripts. Load the SharePoint assembly if those are not loaded.
To load the SharePoint assembly
[System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c")
OR
This assembly can be referred using the “LoadWithPartialName” function which doesn’t require the full assembly information:
[System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”)
$web = Get-SPWeb http://portal
write-host "Web Template:" $web.WebTemplate " Web Template ID:" $web.WebTemplateId
$web.Dispose()
Above script can be stored as a .ps1 file and can be executed using SharePoint PowerShell window.
C# code to find out the web template details:
Server Object model can be used for finding out the web template details.
using System;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
try
{
using(SPSite site=new SPSite(@"http://sitecoll/"))
{
SPWeb web = site.RootWeb;
Console.WriteLine("Web Name : "+web.Title);
Console.WriteLine("Web Template Name : " + web.WebTemplate);
Console.WriteLine("Web Template ID : " + web.WebTemplateId);
Console.WriteLine("Web GUID : " + web.ID);
}
Console.Read();
}
catch (Exception ex)
{
Console.WriteLine("Error: "+ex.Message);
}
}
}
}
Batman
ReplyDeleteArdahan
Adıyaman
Antalya
Giresun
BQA0
ankara parça eşya taşıma
ReplyDeletetakipçi satın al
antalya rent a car
antalya rent a car
ankara parça eşya taşıma
QHB8XH
E4C72
ReplyDeleteOrdu Evden Eve Nakliyat
Ardahan Şehirler Arası Nakliyat
Gümüşhane Şehirler Arası Nakliyat
Ünye Çatı Ustası
Aksaray Lojistik
Kırıkkale Lojistik
Çerkezköy Yol Yardım
Kastamonu Lojistik
Tesla Coin Hangi Borsada
9E6B1
ReplyDeleteTumblr Beğeni Hilesi
Soundcloud Beğeni Satın Al
Bitcoin Kazanma
Bitcoin Yatırımı Nasıl Yapılır
Nonolive Takipçi Hilesi
Sohbet
Paribu Borsası Güvenilir mi
Coin Kazanma Siteleri
Referans Kimliği Nedir
RGRFGBHRFTH
ReplyDeleteشركة كشف تسربات المياه بالدمام