BindReadOnlyProperty(get_lambda) function (dbgmodel.h)

A binder which converts one instance method on a class to a read-only property accessor. The class must be IUnknown derived.

The returned binder will hold reference on the class object.

A binder which converts one lambda to a read-only property accessor. The lambda must hold reference on outer objects through a by value capture.

Usage: BindReadOnlyProperty(get_lambda)

Syntax

Microsoft::WRL::ComPtr<IModelPropertyAccessor> BindReadOnlyProperty(
  const TGet & getFunctor
);

Parameters

getFunctor

A functor of signature (PCWSTR, IModelObject *, IModelObject **) which will act as the getter for the newly created read-only property accessor.

Return value

This function returns Microsoft::WRL::ComPtr<IModelPropertyAccessor>.

Requirements

Requirement Value
Header dbgmodel.h