steam_ugc_query_set_match_any_tag(ugc_query_handle , match_any_tag);

参数 描述
ugc_query_handle The query handle to use.
match_any_tag Sets whether the UGC item tags should match anything or not.

返回: 布尔值


This function can be used to further filter any given UGC query, specifically to switch on or off tag matching. The query handle is the value returned when you created the query (using, for example, steam_ugc_create_query_user()) and the second argument is either true or false depending on whether you require a check for matching tags. The function will return true if the query filter was correctly set, or false otherwise.


var query_handle = steam_ugc_create_query_all(ugc_query_RankedByVote, ugc_match_Items, 1);
steam_ugc_query_set_match_any_tag(query_handle, false);
steam_ugc_query_add_excluded_tag(query_handle, "walking simulator");
steam_ugc_query_set_return_long_description(query_handle, true);
steam_ugc_query_set_allow_cached_response(query_handle, true);
query_ID = steam_ugc_send_query(query_handle);

The above code creates a query request and stores it's handle in a local variable for future use in the rest of the functions which further define the query request before sending the query.