What is the role of SPWeb.EnsureUser method?
Submitted by: AdministratorSPWeb.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.
Eg:
Dim instance As SPWeb
Dim loginName As String
Dim returnValue As SPUser
returnValue = instance.EnsureUser(loginName)
Submitted by: Administrator
Eg:
Dim instance As SPWeb
Dim loginName As String
Dim returnValue As SPUser
returnValue = instance.EnsureUser(loginName)
Submitted by: Administrator
Read Online MOSS Job Interview Questions And Answers
Top MOSS Questions
☺ | What is the role of SPWebApplication object? |
☺ | How DPM for MOSS Work? |
☺ | Explain Two types of workflow supported, i.e. Sequential, State Machine? |
☺ | Explain page layouts of MOSS? |
☺ | What is the role of SPWeb.EnsureUser method? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |