Share via


Web.GetCatalog method

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

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function GetCatalog ( _
    typeCatalog As Integer _
) As List
'Usage
Dim instance As Web
Dim typeCatalog As Integer
Dim returnValue As List

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

Parameters

  • typeCatalog
    Type: System.Int32

    Specifies the type for the gallery.

Return value

Type: Microsoft.SharePoint.Client.List
Returns List.

Remarks

The server must return a null reference (Nothing in Visual Basic) if there is no gallery with the specified type or typeCatalog is not a valid ListTemplateType enumeration value.

See also

Reference

Web class

Web members

Microsoft.SharePoint.Client namespace