ThmxTheme.GetManagedThemesFromFolder method
Gets the list of managed themes available in the given folder for the given site.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetManagedThemesFromFolder ( _
site As SPSite, _
strThemeFolder As String _
) As ReadOnlyCollection(Of ThmxTheme)
'Usage
Dim site As SPSite
Dim strThemeFolder As String
Dim returnValue As ReadOnlyCollection(Of ThmxTheme)
returnValue = ThmxTheme.GetManagedThemesFromFolder(site, _
strThemeFolder)
public static ReadOnlyCollection<ThmxTheme> GetManagedThemesFromFolder(
SPSite site,
string strThemeFolder
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe site collection whose themes will be fetched.
strThemeFolder
Type: System.StringThe theme folder to look in.
Return value
Type: System.Collections.ObjectModel.ReadOnlyCollection<ThmxTheme>
A list of ThmxTheme objects.