_SimpleFindResultInfo::get_SortDirection, put_SortDirection

Ee783970.c++_off(en-US,CS.10).gifEe783970.vb_on(en-US,CS.10).gif

The SortDirection property is a read/write Variant that contains the sort direction. The value of this field can be "asc" for ascending or "desc" for descending.

Definition

Get method:

HRESULT _SimpleFindResultInfo::get_SortDirection(VARIANT*SortDirection);

Put method:

HRESULT _SimpleFindResultInfo::put_SortDirection(VARIANT*SortDirection);

Parameters

SortDirection

[in] When putting the property, a VARIANT that contains the sort direction.
[out, retval] When getting the property, a VARIANT used to return the sort direction.

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 SortDirection parameter contains valid data only if the property is accessed successfully.

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

Requirements for using this property are listed in SimpleFindResultInfo Object.

See Also

SimpleFindResultInfo Object


All rights reserved.