CUtlProps Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CUtlProps Class.

Implements properties for a variety of OLE DB property interfaces (for example, IDBProperties, IDBProperties, and IRowsetInfo).

template < class T >  
class ATL_NO_VTABLE CUtlProps : public CUtlPropsBase  

Parameters

T
The class that contains the BEGIN_PROPSET_MAP.

Methods

GetPropValueGets a property from a property set.
IsValidValueUsed to validate a value before setting a property.
OnInterfaceRequestedHandles requests for an optional interface when a consumer calls a method on an object creation interface.
OnPropertyChangedCalled after setting a property to handle chained properties.
SetPropValueSets a property in a property set.

Most of this class is an implementation detail.

CUtlProps contains two members for setting properties internally: GetPropValue and SetPropValue.

For more information on the macros used in a property set map, see BEGIN_PROPSET_MAP and END_PROPSET_MAP.

Header: atldb.h

OLE DB Provider Templates
OLE DB Provider Template Architecture

Show: