プロパティ セットにプロパティを追加します。
bool AddProperty(
DWORD dwPropertyID,
const VARIANT& var,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
) throw( );
bool AddProperty(
DWORD dwPropertyID,
LPCSTR szValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
) throw( );
bool AddProperty(
DWORD dwPropertyID,
LPCWSTR szValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
) throw( );
bool AddProperty(
DWORD dwPropertyID,
bool bValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
) throw( );
bool AddProperty(
DWORD dwPropertyID,
BYTE bValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
);
bool AddProperty(
DWORD dwPropertyID,
short nValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
);
bool AddProperty(
DWORD dwPropertyID,
long nValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
);
bool AddProperty(
DWORD dwPropertyID,
float fltValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
);
bool AddProperty(
DWORD dwPropertyID,
double dblValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
) throw( );
bool AddProperty(
DWORD dwPropertyID,
CY cyValue,
DBPROPOPTIONS propoptions = DBPROPOPTIONS_REQUIRED
) throw( );
パラメーター
dwPropertyID
[入力] 追加するプロパティの ID。 プロパティ セットに追加する DBPROP 構造体の dwPropertyID の初期化に使用します。var
[入力] プロパティ セットに追加する DBPROP 構造体のプロパティ値の初期化に使用するバリアント値。szValue
[入力] プロパティ セットに追加する DBPROP 構造体のプロパティ値の初期化に使用する文字列。bValue
[入力] プロパティ セットに追加する DBPROP 構造体のプロパティ値の初期化に使用する BYTE 値またはブール値。nValue
[入力] プロパティ セットに追加する DBPROP 構造体のプロパティ値の初期化に使用する整数値。fltValue
[入力] プロパティ セットに追加する DBPROP 構造体のプロパティ値の初期化に使用する浮動小数点数値。dblValue
[入力] プロパティ セットに追加する DBPROP 構造体のプロパティ値の初期化に使用する倍精度浮動小数点数値。cyValue
[入力] プロパティ セットに追加する DBPROP 構造体のプロパティ値の初期化に使用する CY 通貨型の値。
戻り値
プロパティを正常に追加できた場合は true を返します。 それ以外の場合は false を返します。
必要条件
**ヘッダー:**atldbcli.h