Share via


IUIAutomation::GetPatternProgrammaticName Method

Retrieves the registered programmatic name of a control pattern.

Syntax

HRESULT GetPatternProgrammaticName(      
    PATTERNID pattern,
    BSTR *name
);

Parameters

  • pattern
    [in] The identifier of the control pattern. For a list of control pattern IDs, see Control Pattern Identifiers.
  • name
    [out, retval] The address of a variable that receives a pointer to the name.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The programmatic name is intended for debugging and diagnostic purposes only. The string is not localized.

This property should not be used in string comparisons. To determine whether two control patterns are the same, compare the control pattern identifiers directly.