_Auction::get_szDSN, put_szDSN

Ee810897.c++_off(en-US,CS.10).gifEe810897.vb_on(en-US,CS.10).gif

The szDSN property is a read/write String used to store the connection string for the database.

Definition

Get method:

HRESULT _Auction::get_szDSN(BSTR*szDSN);

Put method:

HRESULT _Auction::put_szDSN(BSTRszDSN);

Parameters

szDSN

[in] When putting the property, a BSTR that contains the connection string.
[out, retval] When getting the property, a pointer to a BSTR used to return the connection string.

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

The connection string defaults to an empty string and must be set before the Auction object can be used.

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.