次の方法で共有


IDiaPropertyStorage::ReadBSTR

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

[このトピックはプレリリース版のため将来変更される可能性があります。また、プレースホルダとしてブランクのトピックが含まれています。]

Reads BSTR values in a property set.

HRESULT ReadBSTR ( 
   PROPID id,
   BSTR*  pValue
);

Parameters

  • id
    [in] Identifier of the property to be read (PROPID is defined in WTypes.h as a ULONG).

  • pValue
    [out] Returns the property value.

Return Value

If successful, returns S_OK; otherwise returns an error code. Returns E_INVALIDARG if the property is not of type BSTR.

Remarks

A BSTR is defined by Windows as a zero-terminated wide character string.

See Also

IDiaPropertyStorage