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)

Update User Profile Properties Programmatically

using (SPSite site = new SPSite("http://servername"))

{

ServerContext context = ServerContext.GetContext(site);

UserProfileManager profileManager = new UserProfileManager(context);

string sAccount = "domainname\\username";

UserProfile u = profileManager.GetUserProfile(sAccount);

u[PropertyConstants.PictureURL].Value = "SOME URL";

u.Commit();

}

Share this post: | | | |
Posted: Mar 11 2010, 10:50 AM by agusto | with no comments
Filed under:

Comments

No Comments