void COPropSet::AddProperty(DWORD nPropertyID, VARIANT& vtData);
void COPropSet::AddProperty(DWORD nPropertyID, LPCSTR strValue);
void COPropSet::AddProperty(DWORD nPropertyID, LPCWSTR strValue);
void COPropSet::AddProperty(DWORD nPropertyID, bool bValue);
void COPropSet::AddProperty(DWORD nPropertyID, BYTE bValue);
void COPropSet::AddProperty(DWORD nPropertyID, short nValue);
void COPropSet::AddProperty(DWORD nPropertyID, long nValue);

Parameter

        [in] nPropertyID:

                A property ID used to initialize the dwPropertyID of a DBPROP structure added to the property set.

        [in] vtData:

                A variant used to initialize the property value for a DBPROP structure added to the property set.

        [in] strValue:

                An ANSI or Unicode string used to initialize the property value for a DBPROP structure added to the property set.

        [in] bValue:

                A BYTE or boolean value used to initialize the property value for a DBPROP structure added to the property set.

        [in] nValue:

                A short or long value used to initialize the property value for a DBPROP structure added to the property set.

Remark

        Adds a property to the property set.

COPropSet Class Overview & Class Members