Site.GetCatalog Method
Specifies the list template gallery, site template gallery, Web Part gallery, master page gallery, or other galleries from the site collection, including custom galleries that are defined by users.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Function GetCatalog ( _
typeCatalog As Integer _
) As List
'Usage
Dim instance As Site
Dim typeCatalog As Integer
Dim returnValue As List
returnValue = instance.GetCatalog(typeCatalog)
[RemoteAttribute]
public List GetCatalog(
int typeCatalog
)
Parameters
typeCatalog
Type: System.Int32Specifies the list template type for the gallery.
Return Value
Type: Microsoft.SharePoint.Client.List
Returns a List instance representing the list template type for the gallery.
Remarks
This method requires permissions to the top-level site of the site collection, which is where the galleries are located.