File.GetLimitedWebPartManager Method
Specifies the control set used to access, modify, or add Web Parts associated with this Web Part Page and view.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Function GetLimitedWebPartManager ( _
scope As PersonalizationScope _
) As LimitedWebPartManager
'Usage
Dim instance As File
Dim scope As PersonalizationScope
Dim returnValue As LimitedWebPartManager
returnValue = instance.GetLimitedWebPartManager(scope)
[RemoteAttribute]
public LimitedWebPartManager GetLimitedWebPartManager(
PersonalizationScope scope
)
Parameters
scope
Type: Microsoft.SharePoint.Client.WebParts.PersonalizationScopeSpecifies the personalization scope value that depicts how Web Parts are viewed on the Web Part Page.
Return Value
Type: Microsoft.SharePoint.Client.WebParts.LimitedWebPartManager
Returns a LimitedWebPartManager instance representing the control set used to access, modify, or add Web Parts associated with this Web Part Page and view.
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | URL extension must not be a null reference (Nothing in Visual Basic) and must be ASPX. Error code: -1. |
[System.ArgumentException] | URL must be an absolute address. Error code: -2147024809. |
[System.ArgumentNullException] | URL must not be a null reference (Nothing in Visual Basic). Error code: -2147467261. |
[System.ArgumentOutOfRangeException] | PersonalizationScope must be valid. Error code: -2146233086. |
[System.IO.FileNotFoundException] | New initialized instance of Web Part Manager must exist. Error code: -2147024894. |