Popular Posts
vi hot key guide 第一部份:一般模式可用的按鈕說明,游標移動、複製貼上、搜尋取代等 移動游標的方法 h 或 向左方向鍵(←) 游標向左移動一個字元 j 或 向下方向鍵(↓) 游標向下移動一個字元 k 或 向上方向鍵(↑) 游標向上移動一個字元 l 或 向右方向鍵(→) 游標... Asynchronous and deferred JavaScript execution explained Normal execution <script> This is the default behavior of the <script> element. Parsing of the HTML code pauses while the scr... Enable SSL connection for Jsoup import org.jsoup.Connection; import org.jsoup.Jsoup; import javax.net.ssl.*; import java.io.IOException; import java.security.KeyManagement...
Stats
Active site feature
public void Main(string[] args)
{
    var siteCollectionUrl = "http://your_site_url";
    var featureId = "379c069c-c650-451c-8887-aaaf91bf5df8";
 
    using (var ctx = new ClientContext(siteCollectionUrl))
    {
        var web = ctx.Web;
        // activate feature
        ctx.Load(web);
        ctx.Load(web.Features);
        ctx.ExecuteQuery();
        web.Features.Add(new Guid(featureId), false, FeatureDefinitionScope.Site); ;
        ctx.ExecuteQuery();
    }
}