Share via


TPropertyBag.RegisterBoundProperty(const ce.wstring&,iXRPropertyBinding &) (Compact 7)

3/12/2014

This method registers a data source property with the property bag.

Syntax

HRESULT RegisterBoundProperty(
const ce.wstring & PropertyName,
iXRPropertyBinding & Binder)

Parameters

  • PropertyName
    [in] The name of the data source property to register.
  • Binder
    [in] A pointer to an iXRPropertyBinding derived object that represents the data source property of the property bag.

Return Value

The following table shows the possible return values.

Value Description

S_OK

The method was successful.

E_FAIL

The TPropertyBag.BeginRegisterProperties method was not called.

E_INVALIDARG

The text string in the PropertyName parameter is empty.

Remarks

Before you call RegisterBoundProperty, call TPropertyBag.BeginRegisterProperties to block other threads from accessing the property bag while you register properties. When you are done, call TPropertyBag.EndRegisterProperties.

Requirements

Header

XRPropertyBag.h

See Also

Reference

TPropertyBag<Derived>