BEGIN_PROPSET_MAP

BEGIN_PROPSET_MAP( Class )

Parameters

Class

[in] The class in which this property set is specified. A property set can be specified in the following OLE DB objects:

num

[in] The number of properties in this property set.

Remarks

Marks the beginning of the property set map entries.

Macros for OLE DB Provider Templates

Example

Here is a sample property set map:

BEGIN_PROPSET_MAP(CDataSource)
   BEGIN_PROPERTY_SET(0, &DBPROPSET_DATASOURCEINFO, 0, InitSrcInfoSupported)
      PROPERTY_INFO_ENTRY(ACTIVESESSIONS, VT_I4, DBPROPFLAGS_DATASOURCEINFO | DBPROPFLAGS_READ, 0)
      PROPERTY_INFO_ENTRY(ASYNCTXNABORT,   VT_BOOL, DBPROPFLAGS_DATASOURCEINFO | DBPROPFLAGS_READ, VARIANT_FALSE)
   END_PROPERTY_SET(0)
   BEGIN_PROPERTY_SET(1, &DBPROPSET_DBINIT, 0, InitDBInitSupported)
      PROPERTY_INFO_ENTRY(AUTH_PASSWORD,VT_BSTR,   DBPROPFLAGS_DBINIT | DBPROPFLAGS_READ | DBPROPFLAGS_WRITE, OLESTR("JanPass"))
      PROPERTY_INFO_ENTRY(AUTH_PERSIST_SENSITIVE_AUTHINFO, VT_BOOL, DBPROPFLAGS_DBINIT | DBPROPFLAGS_READ | DBPROPFLAGS_WRITE, VARIANT_FALSE)
   END_PROPERTY_SET(1)
END_PROPSET_MAP()

See Also

Using the OLE DB Provider Templates, The OLE DB Provider Architecture, Creating an OLE DB Provider