UserProfile.PersonalSite Property (Microsoft.Office.Server.UserProfiles) Home
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

'Usage

Dim instance As UserProfile
Dim value As SPSite

value = instance.PersonalSite


'Declaration

Public ReadOnly Property PersonalSite As SPSite

Property Value

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

Community Content

New Instance; Needs Dispose()
Added by:Keith Dahlby
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
}

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View