public void Set(SessionSearchSetMaxResultsOptions other)
 {
     if (other != null)
     {
         m_ApiVersion     = SessionSearch.SessionsearchSetmaxsearchresultsApiLatest;
         MaxSearchResults = other.MaxSearchResults;
     }
 }
示例#2
0
        /// <summary>
        /// Set the maximum number of search results to return in the query, can't be more than <see cref="SessionsInterface.MaxSearchResults" />
        /// </summary>
        /// <param name="options">maximum number of search results to return in the query</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting the max results was successful
        /// <see cref="Result.InvalidParameters" /> if the number of results requested is invalid
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetMaxResults(SessionSearchSetMaxResultsOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <SessionSearchSetMaxResultsOptionsInternal, SessionSearchSetMaxResultsOptions>(ref optionsAddress, options);

            var funcResult = EOS_SessionSearch_SetMaxResults(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }