IRTCUserSearchQuery::SearchPreference (Windows CE 5.0)
This method sets or gets the value currently assigned to a specified search preference. The preference is applied when the application calls the IRTCUserSearch::ExecuteSearch with the associated query object.
HRESULT put_SearchPreference( RTC_USER_SEARCH_PREFERENCE enPreference, long lValue);HRESULT get_SearchPreference( RTC_USER_SEARCH_PREFERENCE enPreference, long* plValue);
Parameters
- enPreference
[in] An RTC_USER_SEARCH_PREFERENCE enumeration value that specifies the search preference. - lValue, plValue
[in, out] The numeric value for the preference. For example, if enPreference is set to RTCUSP_TIME_LIMIT, the associated time limit value can be set to 30 seconds by specifying a value of 30 in this parameter.
Return Values
This method can return an RTC_E_ constant. The following table shows additional possible return values.
Value | Meaning |
---|---|
E_INVALIDARG | The enPreference parameter is not a valid enumeration value or the lValue parameter exceeds the allowed limit. |
E_POINTER | The plValue parameter is not a valid pointer. |
Requirements
OS Versions: Windows CE .NET 4.2 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.
See Also
IRTCUserSearchQuery | IRTCUserSearch::ExecuteSearch | RTC_USER_SEARCH_PREFERENCE
Send Feedback on this topic to the authors