SPFile.GetLimitedWebPartManager method
Returns the Web Part manager that is associated with the Web Parts page.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetLimitedWebPartManager ( _
scope As PersonalizationScope _
) As SPLimitedWebPartManager
'Usage
Dim instance As SPFile
Dim scope As PersonalizationScope
Dim returnValue As SPLimitedWebPartManager
returnValue = instance.GetLimitedWebPartManager(scope)
public SPLimitedWebPartManager GetLimitedWebPartManager(
PersonalizationScope scope
)
Parameters
scope
Type: System.Web.UI.WebControls.WebParts.PersonalizationScopeA System.Web.UI.WebControls.WebParts.PersonalizationScope value that specifies either Shared, meaning that personalization data applies to all users and can be saved, or User, meaning that both user-specific personalization data, and personalization data that applies to all users, is loaded for controls on the page, but that only user-specific data can be saved.
Return value
Type: Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager
An SPLimitedWebPartManager object that represents the Web Part manager.
Remarks
Calling the GetLimitedWebPartManager method on a non-.aspx page throws an exception.