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


Метод Web.GetCatalog

Returns the list template gallery, site template gallery, or Web Part gallery for the site.

Пространство имен:  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
)

Параметры

  • typeCatalog
    Тип: System.Int32

    Specifies the type for the gallery.

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

Тип: Microsoft.SharePoint.Client.List
Returns List.

Замечания

The server must return пустая ссылка (Nothing в Visual Basic) if there is no gallery with the specified type or typeCatalog is not a valid ListTemplateType enumeration value.

См. также

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

Web класс

Элементы Web

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