Agusto Xaverius P Sipahutar

Job:Making some bugs and patch
Moss/Wss,C#,Sql Server,WWF,K2.BlackPearl
Motto : Keep Study and study
See also: Other Geeks@INDC

News




MCP Logo
MCTS Logo

MCP ID# 3542391

My Curiculum Vitae


Agusto Xaverius P S's Facebook profile

Other Article

My Community

My Article/Share Knowledge

Others Moss/Wss Site

My Other Website/Blogs

My Share (Ebook,etc)

How To: Change a SharePoint Application Pool Programmatically

Selain kita bisa menggantikan SharePoint Pool lewat IIS Manager. Kita pun bisa melakukannya dengan menggunakan coding.

Berikut ini sample code nya :

   1: System.Uri webAppToChangeUri = new System.Uri("http://contoso:2100");
   2: SPWebApplication webAppToChange = SPWebApplication.Lookup(webAppToChangeUri);
   3: webAppToChange.ApplicationPool.Name = "ALL MOSS";
   4: webAppToChange.Update(true);
   5:  
   6: webAppToChange.Provision(); 
Share this post: | | | |
Posted: Feb 22 2010, 03:07 PM by agusto | with no comments
Filed under:

Comments

No Comments