Web.EnsureUser - Méthode
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.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Function EnsureUser ( _
logonName As String _
) As User
'Utilisation
Dim instance As Web
Dim logonName As String
Dim returnValue As User
returnValue = instance.EnsureUser(logonName)
public User EnsureUser(
string logonName
)
Paramètres
logonName
Type : System.StringThe logon name (Domain\User_Alias) of the user.
Valeur renvoyée
Type : Microsoft.SharePoint.Client.User
Returns User.