Share via


CreatePersonalSite Method

The CreatePersonalSite method of the UserProfile class creates a personal site for this user if a personal site doesn't already exist.

Exceptions

Exception Type Condition
PersonalSiteExistsException An user already has a personal site
PersonalSiteNamingConflictException A Personal site name conflicts with an existing site and the conflict could not be resolved
PersonalSiteCreateException A personal site could not be created at all
PersonalSitePartialCreateException A personal site was created, but not all of the properties or attributes could be set correctly

Remarks

To create your own personal site you must have PortalRight.CreatePersonalSite and PortalRight.UseSubscription permissions.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security