MOSS Question:
Download Questions PDF

What is the role of SPWeb.EnsureUser method?


SPWeb.EnsureUser method validates whether the specified login name belongs to a valid user of the website or not. If the login name does not exist then it adds the login name to the website.


Dim instance As SPWeb

Dim loginName As String

Dim returnValue As SPUser

returnValue = instance.EnsureUser(loginName)

Download MOSS Interview Questions And Answers PDF

Previous QuestionNext Question
What is the role of AllowUnsafeUpdates?What is the difference between SPSite and SPWeb object?