Поделиться через


Метод File.GetLimitedWebPartManager

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

Пространство имен:  Microsoft.SharePoint.Client
Сборки:   Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)

Синтаксис

'Декларация
Public Function GetLimitedWebPartManager ( _
    scope As PersonalizationScope _
) As LimitedWebPartManager
'Применение
Dim instance As File
Dim scope As PersonalizationScope
Dim returnValue As LimitedWebPartManager

returnValue = instance.GetLimitedWebPartManager(scope)
public LimitedWebPartManager GetLimitedWebPartManager(
    PersonalizationScope scope
)

Параметры

Возвращаемое значение

Тип: 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.

Исключения

Исключение Условие
[Microsoft.SharePoint.SPException]

URL extension must not be пустая ссылка (Nothing в 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 пустая ссылка (Nothing в 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.

См. также

Справочные материалы

File класс

Элементы File

Пространство имен Microsoft.SharePoint.Client