Click or drag to resize
ObjectHelperGetObjectIconPath Method (Page, String, String, Boolean, Boolean, String)

Note: This API is now obsolete.

Gets the icon for the given object type.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("Use font icons instead.")]
public static string GetObjectIconPath(
	Page page,
	string objectType,
	string iconName,
	bool isLiveSite,
	bool ensureDefaultTheme,
	out string usedObjectType
)

Parameters

page
Type: System.Web.UIPage
Page
objectType
Type: SystemString
Object type constant
iconName
Type: SystemString
Icon name (e.g. list.png)
isLiveSite
Type: SystemBoolean
Indicates if URL should be returned for live site
ensureDefaultTheme
Type: SystemBoolean
Indicates if default theme should be always used
usedObjectType
Type: SystemString
Object type which has been eventually used to get the icon (this will be usually the given object type, but for inherited object types this can be their parent object type)

Return Value

Type: String
See Also