MySitePublicWebPartPage.GetEffectivePrivacy Method
Returns the effective privacy setting for the “My Site” public page.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Shared Function GetEffectivePrivacy ( _
page As Page _
) As Privacy
'Usage
Dim page As Page
Dim returnValue As Privacy
returnValue = MySitePublicWebPartPage.GetEffectivePrivacy(page)
public static Privacy GetEffectivePrivacy(
Page page
)
Parameters
page
Type: System.Web.UI.PageA “My Site” public page.
Return Value
Type: Microsoft.Office.Server.UserProfiles.Privacy
The effective privacy.
Remarks
This override returns the requested privacy if the current page is the “My Site” public page and the View State is initialized; otherwise, returns Private.