_Auction::get_szBidOrderBy, put_szBidOrderBy

Ee810817.c++_off(en-US,CS.10).gifEe810817.vb_on(en-US,CS.10).gif

The szBidOrderBy property is a read/write String used to resolve ties.

Definition

Get method:

HRESULT _Auction::get_szBidOrderBy(BSTR*szBidOrderBy);

Put method:

HRESULT _Auction::put_szBidOrderBy(BSTRszBidOrderBy);

Parameters

szBidOrderBy

[in] When putting the property, a BSTR that contains a comma-separated list of the fields used as criteria for selecting the auction winners.
[out, retval] When getting the property, a pointer to a BSTR used to return a comma-separated list of the fields used as criteria for selecting the auction winners.

Return Values

These methods return an HRESULT indicating whether they completed successfully. See the Error Values section for more details.

Error Values

These methods return S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

Remarks

This string contains the fields (from the Bid table) used as criteria for selecting the auction winners when equal amounts are bid for an item. The string is added to the ORDER BY clause of a SQL string passed to the database for selecting the winners. The default string is "desired, modified_date". This means if two bidders bid the same amount, the bidder requesting more items wins. If still tied, the bidder placing the earliest bid wins.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

Auction Object


All rights reserved.