Returns a text string describing the property identified with dispID in the caller’s user interface. In other words, the returned text is a displayable name describing the property and can be displayed in the caller’s user interface. The string itself is a BSTR allocated by this method with SysAllocString. Upon return, the string is the responsibility of the caller, which must free it with SysFreeString when it is no longer needed.
HRESULT GetDisplayString(
DISPID dispID , |
//Dispatch identifier for the property |
BSTR *pbstr |
//Receives a pointer to the displayable string describing the property |
); |
Parameters
Return Values
This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
Remarks
The caller is responsible for freeing the pbstr string with SysFreeString when it is no longer needed.