Which code segment should you use, to check whether the user of account name "MicrosoftAdmerson" has a user profile?

Question:Which code segment should you use, to check whether the user of account name "MicrosoftAdmerson" has a user profile?

1.using (SPSite site = new SPSite("http://test"))<br> &nbsp;&nbsp;{<br> &nbsp;&nbsp;&nbsp;&nbsp;ServerContext context = ServerContext.GetContext(site);<br> &nbsp;&nbsp;&nbsp;&nbsp;UserProfi

2.using (SPSite site = new SPSite("http://test")) { ServerContext context = ServerContext.GetContext(site);UserProfi

3.using (SPSite site = new SPSite("http://test")){ ServerContext context = ServerContext.GetContext(site);UserProfi

4.None of the mentioned


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!