Метод Web.EnsureUser
Checks whether the specified logon name belongs to a valid user of the website, and if the logon name does not already exist, adds it to the website.
Пространство имен: Microsoft.SharePoint.Client
Сборки: Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)
Синтаксис
'Декларация
Public Function EnsureUser ( _
logonName As String _
) As User
'Применение
Dim instance As Web
Dim logonName As String
Dim returnValue As User
returnValue = instance.EnsureUser(logonName)
public User EnsureUser(
string logonName
)
Параметры
logonName
Тип: System.StringThe logon name (Domain\User_Alias) of the user.
Возвращаемое значение
Тип: Microsoft.SharePoint.Client.User
Returns User.