File.GetLimitedWebPartManager - Méthode
Specifies the control set used to access, modify, or add Web Parts associated with this Web Part Page and view.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Function GetLimitedWebPartManager ( _
scope As PersonalizationScope _
) As LimitedWebPartManager
'Utilisation
Dim instance As File
Dim scope As PersonalizationScope
Dim returnValue As LimitedWebPartManager
returnValue = instance.GetLimitedWebPartManager(scope)
public LimitedWebPartManager GetLimitedWebPartManager(
PersonalizationScope scope
)
Paramètres
scope
Type : Microsoft.SharePoint.Client.WebParts.PersonalizationScopeSpecifies the personalization scope value that depicts how Web Parts are viewed on the Web Part Page.
Valeur renvoyée
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 une référence Null (Rien dans 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 une référence Null (Rien dans 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. |