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.