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
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
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)
public LimitedWebPartManager GetLimitedWebPartManager(
    PersonalizationScope scope
)

Parameters

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.

See also

Reference

File class

File members

Microsoft.SharePoint.Client namespace