Share via


IMLPropertySet::GetBSTR (Compact 7)

3/12/2014

This method returns the value of a string property.

Syntax

HRESULT GetBSTR(
  ULONG propertyID,
  BSTR *pbstrValue
);

Parameters

  • propertyID
    [in] ID of the property.
  • pbstrValue
    [out] Pointer to the value of the property.

Return Values

Returns the HRESULT values shown in the following table.

Value Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_POINTER

The pbstrValue parameter is invalid.

E_FAIL

The method was not successful.

E_MEMORY

An out of memory error occurred.

Remarks

The caller is responsible to call SysFreeString on the retuned value.

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLPropertySet