IASImageMenu::put_String

This method assigns a string to an item.

Syntax

HRESULT put_String( long index, BSTR bstr );

Parameters

index
[in] Index of the item.
bstr
[in] Unicode string to be assigned.

Return Values

NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.

Remarks

The string associated with an image can be used to display text in the Auto PC label control associated with the image menu.

See Also

IASLabel