HP Operations Manager for Windows

OV_ConfigFileVariety::HasTemplate()
OV_ConfigFileVariety::HasTemplate_Trans()


boolean HasTemplate(
[in, optional] string Filename)

Parameters

Filename
Name of a file to use as a template. If you do not specify this parameter, the method uses the Filename property.

Calling Convention

These methods can be called only from a WMI instance object.

Description

Returns true if the current variety has the template associated.

If the current variety does not have the template associated, the policy editor button 'Load Template' is disabled.

If the name of the file (either the Filename parameter or the Filename property) is '<*>', the method fails with MDLAPI_E_CONFIGFILEVAR_TEMPL_FILENAME.

Return Value

True if the current variety has the template associated.

Extended Status Codes

MDLAPI_E_CONFIGFILEVAR_TEMPL_FILENAME
String '<*>' cannot be used as the Filename.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.