Exago .NET API Documentation
ExistTheme Method
Example 
WebReports.Api.ReportMgmt Namespace > ReportMgmtBase Class : ExistTheme Method
A string representing the type of theme to check for. Use one of the ReportTheme.ReportThemeType Enumeration members.
A string with the name of the theme to check for.
Check if a theme exists by type and name.
Syntax
public System.bool ExistTheme( 
   System.string themeType,
   System.string themeName
)

Parameters

themeType
A string representing the type of theme to check for. Use one of the ReportTheme.ReportThemeType Enumeration members.
themeName
A string with the name of the theme to check for.

Return Value

True if a themeType theme named themName exists in the database, False if it does not.
Exceptions
ExceptionDescription
System.ArgumentNullException is thrown if the themeType is null.
Example
Check if the Lava Splash ExpressView theme is available
if (api.ReportManagement.ExistTheme(ReportTheme.ReportThemeType.ExpressView_v2.ToString(), "Lava Splash")) {
	//do something
}
See Also

Reference

ReportMgmtBase Class
ReportMgmtBase Members