Compartilhar via


GetCategory method

Gets the categories to which the Dynamic HTML (DHTML) behavior belongs.

Syntax

HRESULT retVal = object.GetCategory(ppchCategory);

Parameters

  • ppchCategory [out, retval]
    Type: LPOLESTR

    A pointer to a string that returns the category of the behavior.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method returns a string terminated with two NULL characters. Multiple categories in the string are delimited by a single NULL character.

A category is represented as a Uniform Resource Name (URN) and is used to group Dynamic HTML (DHTML) behaviors that implement similar functionality.

Note  This method is available as of Microsoft Internet Explorer 5 and is subject to change.

 

See also

IElementBehaviorSiteCategory::GetRelatedBehaviors