UserProfile.CreatePersonalSite method
Se um site pessoal ainda não existir, cria um site pessoal para este usuário.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaração
Public Sub CreatePersonalSite
'Uso
Dim instance As UserProfile
instance.CreatePersonalSite()
public void CreatePersonalSite()
Examples
SPSite site = new SPSite("http:// url");
SPServiceContext serviceContext = SPServiceContext.GetContext(site);
UserProfileManager profileManager = new UserProfileManager(serviceContext);
UserProfile profile = profileManager.GetUserProfile("user");
profile.CreatePersonalSite();