共用方式為


Web.GetCatalog 方法

傳回清單中的範本藝廊、 網站範本組件庫或網站的網頁組件庫。

命名空間:  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 GetCatalog ( _
    typeCatalog As Integer _
) As List
'用途
Dim instance As Web
Dim typeCatalog As Integer
Dim returnValue As List

returnValue = instance.GetCatalog(typeCatalog)
public List GetCatalog(
    int typeCatalog
)

參數

傳回值

類型:Microsoft.SharePoint.Client.List
傳回List

備註

如果有指定類型沒有庫或typeCatalog不是有效的ListTemplateType列舉值,伺服器必須傳回null 參考 (未執行任何動作 於 Visual Basic 中) 。

請參閱

參照

Web 類別

Web 成員

Microsoft.SharePoint.Client 命名空間