Share via


SP.File.getLimitedWebPartManager(scope) Method

Specifies the control set used to access, modify, or add Web Parts associated with this Web Part Page and view.

Applies to: SharePoint Foundation 2010

var value = SP.File.getLimitedWebPartManager(scope);

Parameters

  • scope
    Specifies the personalization scope value that depicts how Web Parts are viewed on the Web Part Page.

Type: SP.WebParts.PersonalizationScope

Return Value

Type: SP.WebParts.LimitedWebPartManager

Applies To

SP.File Class

Exceptions

  • [Microsoft.SharePoint.SPException]
    URL extension must not be null and must be ASPX. Error code: -1.
  • [System.ArgumentException]
    URL must be an absolute address. Error code: -2147024809.
  • [System.ArgumentNullException]
    URL must not be null. 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

SP.File Methods

SP.File Properties

SP Namespace