File.GetLimitedWebPartManager 方法
指定存取、修改或新增與此網頁組件和檢視相關聯的網頁組件所用的控制項。
命名空間: 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
)
參數
scope
類型:Microsoft.SharePoint.Client.WebParts.PersonalizationScope指定說明如何檢視網頁組件的網頁組件頁面的個人化範圍值。
傳回值
類型:Microsoft.SharePoint.Client.WebParts.LimitedWebPartManager
傳回代表用來存取、 修改或新增網頁組件檢視此網頁組件頁面與相關聯的控制項集LimitedWebPartManager執行個體。
例外狀況
例外狀況 | 條件 |
---|---|
[Microsoft.SharePoint.SPException] | URL 副檔名不能null 參考 (未執行任何動作 於 Visual Basic 中) ,而且必須 ASPX。錯誤碼:-1。 |
[System.ArgumentException] | URL 必須是絕對的地址。錯誤碼 ︰-2147024809。 |
[System.ArgumentNullException] | URL 不能null 參考 (未執行任何動作 於 Visual Basic 中)。錯誤碼 ︰-2147467261。 |
[System.ArgumentOutOfRangeException] | PersonalizationScope 必須是有效的。錯誤碼 ︰-2146233086。 |
[System.IO.FileNotFoundException] | 必須有新的網頁組件管理員的初始化執行個體。錯誤碼 ︰-2147024894。 |