Share via


TPropertyBag.GetValue(const WCHAR *,XRValue *) (Compact 7)

3/12/2014

This method obtains the current value of a data source property in the property bag.

Syntax

HRESULT STDMETHODCALLTYPE GetValue(
const WCHAR * PropertyName,
XRValue * pValue)

Parameters

  • PropertyName
    [in] A pointer to a text string that contains the property’s name.
  • pValue
    [out] A pointer to an XRValue object that encapsulates the property’s value.

Return Value

The following table shows the possible return values.

Value Description

S_OK

The method was successful.

E_POINTER

The pValue parameter is not valid.

Remarks

You can use this method to obtain a registered property’s value by supplying its property name, instead of its object name.

Requirements

Header

XRPropertyBag.h

See Also

Reference

TPropertyBag<Derived>
TPropertyBag.SetValue(const WCHAR *,XRValue *)