ThmxTheme.GetManagedThemes Method

Gets the list of managed themes available in the theme gallery of the given site collection.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ReadOnlyCollectionOfSPTypesParameter)> _
Public Shared Function GetManagedThemes ( _
    site As SPSite _
) As ReadOnlyCollection(Of ThmxTheme)
'Usage
Dim site As SPSite
Dim returnValue As ReadOnlyCollection(Of ThmxTheme)

returnValue = ThmxTheme.GetManagedThemes(site)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ReadOnlyCollectionOfSPTypesParameter)]
public static ReadOnlyCollection<ThmxTheme> GetManagedThemes(
    SPSite site
)

Parameters

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ThmxTheme>
A read-only collection of themes.

See Also

Reference

ThmxTheme Class

ThmxTheme Members

Microsoft.SharePoint.Utilities Namespace