UserProfile.PersonalSite Property (Microsoft.Office.Server.UserProfiles)
Gets the personal site of the user.

Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server (in microsoft.office.server.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property PersonalSite As SPSite
Visual Basic (Usage)
Dim instance As UserProfile
Dim value As SPSite

value = instance.PersonalSite
C#
public SPSite PersonalSite { get; }

Property Value

Microsoft.SharePoint.SPSite that contains the personal site of the user.
See Also

Tags :


Community Content

Keith Dahlby
New Instance; Needs Dispose()
This property returns a new SPSite on each call and should be disposed by the caller.

// Use ServerContext.Current in web context
ServerContext context = ServerContext.GetContext(site);

UserProfile myProfile = ProfileLoader.GetProfileLoader(context).GetUserProfile();
using (SPSite personalSite = profile.PersonalSite)
{
// Process personalSite
}

Tags :

Page view tracker