다음을 통해 공유


UserProfile.CreatePersonalSite Method

Creates a personal site for this user if a personal site does not already exist.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Sub CreatePersonalSite
'Usage
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();

See Also

Reference

UserProfile Class

UserProfile Members

CreatePersonalSite Overload

Microsoft.Office.Server.UserProfiles Namespace